File: libxt_addrtype.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 (11 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
iptables-translate -A INPUT -m addrtype --src-type LOCAL
nft 'add rule ip filter INPUT fib saddr type local counter'

iptables-translate -A INPUT -m addrtype --dst-type LOCAL
nft 'add rule ip filter INPUT fib daddr type local counter'

iptables-translate -A INPUT -m addrtype ! --dst-type ANYCAST,LOCAL
nft 'add rule ip filter INPUT fib daddr type != { local, anycast } counter'

iptables-translate -A INPUT -m addrtype --limit-iface-in --dst-type ANYCAST,LOCAL
nft 'add rule ip filter INPUT fib daddr . iif type { local, anycast } counter'