nft table print just the one rule of the chain

0

how to list nft chain only specific rule by handle number, for example this command nft -n list -n table bridge b -a will print :

table bridge b {
    chain ens160-ingress {
            type filter hook prerouting priority 0; policy accept;
            oifname "ens160" vlan id 4092 mark set 0x00000005 counter packets 0 bytes 0 # handle 2
            oifname "ens160" vlan type != vlan mark set 0x00000064 counter packets 0 bytes 0 # handle 3
    }

and i want just to print the line of handle 3

linux
networking
ubuntu-16.04
asked on Stack Overflow Aug 28, 2017 by junior_software

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0