blob: 38917119e179c6c39198a2de97f9b864e8222735 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
family=bridge
for hook in prerouting input forward output
do
prioname=srcnat
$NFT add table $family x
$NFT add chain $family x y "{ type filter hook $hook priority $prioname; }" &> /dev/null
if (($? == 0))
then
echo "E: $prioname should not be a valid priority name for bridge $hook chains." >&2
exit 1
fi
done
exit 0
|