summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_mark.txlate
blob: 6bfb52434df2929bed9249bd09123871182240ce (plain)
1
2
3
4
5
iptables-translate -I INPUT -p tcp -m mark ! --mark 0xa/0xa
nft insert rule ip filter INPUT ip protocol tcp mark and 0xa != 0xa counter

iptables-translate -I INPUT -p tcp -m mark ! --mark 0x1
nft insert rule ip filter INPUT ip protocol tcp mark != 0x1 counter