blob: b6941c58eea981d9ddf8ce67a995cac0e59b6fcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
set -e
$NFT add table t
$NFT add flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; }
if $NFT create flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; } 2>/dev/null ; then
echo "E: flowtable creation not failing on existing set" >&2
exit 1
fi
$NFT add flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; }
exit 0
|