summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0024prio_inet_dstnat_1
blob: d112f2c958c02502730e8b4a8c4931810331bd05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

for family in ip ip6 inet
do
	for hook in input forward output postrouting
	do
		$NFT add table $family x
		$NFT add chain $family x y "{ type filter hook $hook priority dstnat; }" &> /dev/null
		if (($? == 0))
		then
			echo "E: dstnat should not be a valid priority name in $family $hook chains." >&2
			exit 1
		fi
	done
done
exit 0