From 4f787c92e434e9332e834248723c98f58f309d6c Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 15 Oct 2023 22:58:57 +0200 Subject: [PATCH] Fix nft down scripts --- system/base/nftables/templates/nftables.conf | 1 + vpn/bridge/templates/nftables/down.nft | 3 +++ vpn/wireguard/templates/nftables/down.nft | 1 + 3 files changed, 5 insertions(+) diff --git a/system/base/nftables/templates/nftables.conf b/system/base/nftables/templates/nftables.conf index de5e8d8..84a8133 100755 --- a/system/base/nftables/templates/nftables.conf +++ b/system/base/nftables/templates/nftables.conf @@ -1,6 +1,7 @@ #!/usr/sbin/nft -f table inet main_inet +flush table inet main_inet delete table inet main_inet table inet main_inet { diff --git a/vpn/bridge/templates/nftables/down.nft b/vpn/bridge/templates/nftables/down.nft index 2431485..d22e477 100644 --- a/vpn/bridge/templates/nftables/down.nft +++ b/vpn/bridge/templates/nftables/down.nft @@ -1,8 +1,11 @@ +table ip6 ${IFACE}_ipv6 flush table ip6 ${IFACE}_ipv6 delete table ip6 ${IFACE}_ipv6 +table ip ${IFACE}_ipv4 flush table ip ${IFACE}_ipv4 delete table ip ${IFACE}_ipv4 +table inet ${IFACE}_inet flush table inet ${IFACE}_inet delete table inet ${IFACE}_inet diff --git a/vpn/wireguard/templates/nftables/down.nft b/vpn/wireguard/templates/nftables/down.nft index fb72e3a..202ed11 100644 --- a/vpn/wireguard/templates/nftables/down.nft +++ b/vpn/wireguard/templates/nftables/down.nft @@ -1,4 +1,5 @@ #!/usr/bin/env -S nft -f +table inet ${IFACE}_inet flush table inet ${IFACE}_inet delete table inet ${IFACE}_inet