Fix nft down scripts

This commit is contained in:
Wojciech Kozlowski 2023-10-15 22:58:57 +02:00
parent 977e1dca9a
commit 4f787c92e4
3 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/usr/sbin/nft -f #!/usr/sbin/nft -f
table inet main_inet table inet main_inet
flush table inet main_inet
delete table inet main_inet delete table inet main_inet
table inet main_inet { table inet main_inet {

View File

@ -1,8 +1,11 @@
table ip6 ${IFACE}_ipv6
flush table ip6 ${IFACE}_ipv6 flush table ip6 ${IFACE}_ipv6
delete table ip6 ${IFACE}_ipv6 delete table ip6 ${IFACE}_ipv6
table ip ${IFACE}_ipv4
flush table ip ${IFACE}_ipv4 flush table ip ${IFACE}_ipv4
delete table ip ${IFACE}_ipv4 delete table ip ${IFACE}_ipv4
table inet ${IFACE}_inet
flush table inet ${IFACE}_inet flush table inet ${IFACE}_inet
delete table inet ${IFACE}_inet delete table inet ${IFACE}_inet

View File

@ -1,4 +1,5 @@
#!/usr/bin/env -S nft -f #!/usr/bin/env -S nft -f
table inet ${IFACE}_inet
flush table inet ${IFACE}_inet flush table inet ${IFACE}_inet
delete table inet ${IFACE}_inet delete table inet ${IFACE}_inet