summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_cgroup.txlate
blob: 75f2e6ae16fe0ca9d3033b259e1237ef294ce842 (plain)
1
2
3
4
5
iptables-translate -t filter -A INPUT -m cgroup --cgroup 0 -j ACCEPT
nft add rule ip filter INPUT meta cgroup 0 counter accept

iptables-translate -t filter -A INPUT -m cgroup ! --cgroup 0 -j ACCEPT
nft add rule ip filter INPUT meta cgroup != 0 counter accept