File: libxt_devgroup.txlate

package info (click to toggle)
iptables 1.8.11-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,792 kB
  • sloc: ansic: 53,482; sh: 7,810; xml: 772; python: 755; makefile: 271
file content (17 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
iptables-translate -A FORWARD -m devgroup --src-group 0x2 -j ACCEPT
nft 'add rule ip filter FORWARD iifgroup 0x2 counter accept'

iptables-translate -A FORWARD -m devgroup --dst-group 0xc/0xc -j ACCEPT
nft 'add rule ip filter FORWARD oifgroup and 0xc == 0xc counter accept'

iptables-translate -t mangle -A PREROUTING -p tcp --dport 46000 -m devgroup --src-group 23 -j ACCEPT
nft 'add rule ip mangle PREROUTING tcp dport 46000 iifgroup 0x17 counter accept'

iptables-translate -A FORWARD -m devgroup ! --dst-group 0xc/0xc -j ACCEPT
nft 'add rule ip filter FORWARD oifgroup and 0xc != 0xc counter accept'

iptables-translate -A FORWARD -m devgroup ! --src-group 0x2 -j ACCEPT
nft 'add rule ip filter FORWARD iifgroup != 0x2 counter accept'

iptables-translate -A FORWARD -m devgroup ! --src-group 0x2 --dst-group 0xc/0xc -j ACCEPT
nft 'add rule ip filter FORWARD iifgroup != 0x2 oifgroup and 0xc != 0xc counter accept'