From c4f5db354606d0f070b72b5cead39ec9c7b3682d Mon Sep 17 00:00:00 2001 From: Bray <6+bray@noreply.localhost> Date: Fri, 25 Sep 2026 12:26:29 +0000 Subject: [PATCH] Update pfw --- pfw | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pfw b/pfw index 15d7166..023fd9a 100644 --- a/pfw +++ b/pfw @@ -12,6 +12,7 @@ oipa=$3 #sudo iptables -t nat -L -n -v #sudo iptables-persistent +sudo nft -f /etc/nftables.conf sudo echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/95-IPv4-forwarding.conf sudo sysctl -p /etc/sysctl.d/95-IPv4-forwarding.conf sudo sysctl -w net.ipv4.ip_forward=1 @@ -21,4 +22,5 @@ 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 nft list ruleset #| sudo tee /etc/nftables/port-forwarding.nft +sudo ufw reload +sudo nft list ruleset #| sudo tee /etc/nftables/port-forwarding.nft \ No newline at end of file