Update pfw

This commit is contained in:
Bray committed 2026-09-25 11:50:43 +00:00
1 parent 9b5d44325a
commit e6687e636b
1 file changed
+1
+1
View File
@@ -18,4 +18,5 @@ sudo nft add chain ip nat prerouting { type nat hook prerouting priority -100 \;
sudo nft add chain ip nat postrouting { type nat hook postrouting priority 100 \; } 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 prerouting tcp dport $iprt dnat to $oipa:$oprt
sudo nft add rule ip nat postrouting ip daddr $oipa masquerade 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 nft list ruleset | sudo tee /etc/nftables/port-forwarding.nft