blob: b6fa3db5d54da8b4a8d55693ea27afb40630d382 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
family=netdev
for hook in ingress egress
do
for prioname in raw mangle dstnat security srcnat
do
$NFT add table $family x || exit 1
$NFT add chain $family x y "{ type filter hook $hook device lo priority $prioname; }" &> /dev/null
if (($? == 0))
then
echo "E: $prioname should not be a valid priority name for netdev family chains." >&2
exit 1
fi
done
done
exit 0
|