summaryrefslogtreecommitdiffstats
path: root/tests/files/family-ipv6
blob: cfc740c1125380b417334d8b77bd92ba0c0ed7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! nft -f

add table ip6 filter
add chain ip6 filter output { type filter hook output priority 0 ; }

# IP address
add rule ip6 filter output ip6 daddr 2001:6f8:974::1 counter

# Next protocol
add rule ip6 filter output ip6 nexthdr tcp

# TCP ports
add rule ip6 filter output tcp dport 22 counter