summaryrefslogtreecommitdiffstats
path: root/tests/verdict-maps
blob: 25b60d19392c305c4d4c623cb7bdfce36d49c06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! nft -f
#

add table ip filter
add chain ip filter input { hook NF_INET_LOCAL_IN 0; }

add chain ip filter chain1
add filter chain1 counter

add chain ip filter chain2
add filter chain2 counter

add chain ip filter chain3
add filter chain3 counter

add filter input ip saddr vmap { \
	10.0.0.0/24 => jump chain1, \
	10.0.0.0/8  => jump chain2, \
	8.8.8.8 => jump chain3 \
}