blob: a9a7264a08b93d1b83e210fda68296daea43506e (
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 0
fi
done
done
exit 1
|