nftables: fix finish script
This commit is contained in:
parent
20cd1e92d0
commit
57473a9af7
2 changed files with 2 additions and 18 deletions
|
@ -1,19 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# When the lts and stable kernel is switched to version 3.18 or greater
|
nft flush ruleset
|
||||||
# this script can be simplified to:
|
|
||||||
#
|
|
||||||
# nft flush ruleset
|
|
||||||
|
|
||||||
for family in ip ip6 inet arp bridge; do
|
|
||||||
nft list tables $family | while read _ table; do
|
|
||||||
nft flush table $family $table
|
|
||||||
nft list table $family $table |
|
|
||||||
awk '/^[[:blank:]]+chain [[:alnum:]]+ {$/ { print $2 }' |
|
|
||||||
while read chain; do
|
|
||||||
nft flush chain $family $table $chain
|
|
||||||
nft delete chain $family $table $chain
|
|
||||||
done
|
|
||||||
nft delete table $family $table
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'nftables'
|
# Template file for 'nftables'
|
||||||
pkgname=nftables
|
pkgname=nftables
|
||||||
version=0.8
|
version=0.8
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sbindir=/usr/bin CONFIG_MAN=y DB2MAN=docbook2man"
|
configure_args="--sbindir=/usr/bin CONFIG_MAN=y DB2MAN=docbook2man"
|
||||||
hostmakedepends="pkg-config docbook2x flex bison"
|
hostmakedepends="pkg-config docbook2x flex bison"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue