blob: 529d6b85e4157255726e106910b4ef488ad9bada (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
set -e
$NFT add table t
HANDLE=`$NFT -a list ruleset | grep "table.*handle" | cut -d' ' -f7`
$NFT delete table handle $HANDLE
$NFT add table t
$NFT add chain t c
HANDLE=`$NFT -a list ruleset | grep "chain.*handle" | cut -d' ' -f6`
$NFT delete chain t handle $HANDLE
$NFT add set t s { type ipv4_addr\; }
HANDLE=`$NFT -a list ruleset | grep "set.*handle" | cut -d' ' -f6`
$NFT delete set t handle $HANDLE
$NFT add flowtable t f { hook ingress priority 0\; }
HANDLE=`$NFT -a list ruleset | grep "flowtable.*handle" | cut -d' ' -f6`
$NFT delete flowtable t handle $HANDLE
$NFT add counter t x
HANDLE=`$NFT -a list ruleset | grep "counter.*handle" | cut -d' ' -f6`
$NFT delete counter t handle $HANDLE
|