From d5f68469fe18389600fb4b9c8b7e6146b2a0a678 Mon Sep 17 00:00:00 2001 From: Bray <6+bray@noreply.localhost> Date: Fri, 25 Sep 2026 12:36:57 +0000 Subject: [PATCH] Update pfw --- pfw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfw b/pfw index b314ed1..2a745ce 100644 --- a/pfw +++ b/pfw @@ -15,6 +15,7 @@ oipa=$3 #sudo iptables-persistent sudo nft -f /etc/nftables.conf +sudo ufw reload sudo sysctl -w net.ipv4.ip_forward=1 sudo nft add table ip nat sudo nft add chain ip nat prerouting { type nat hook prerouting priority -100 \; } @@ -22,5 +23,4 @@ sudo nft add chain ip nat postrouting { type nat hook postrouting priority 100 \ sudo nft add rule ip nat prerouting tcp dport $iprt dnat to $oipa:$oprt sudo nft add rule ip nat postrouting ip daddr $oipa masquerade #sudo mkdir /etc/nftables/ -sudo ufw reload sudo nft list ruleset #| sudo tee /etc/nftables/port-forwarding.nft \ No newline at end of file