Update pfw
This commit is contained in:
1 parent
d5f68469fe
commit
31e0e90a32
1 file changed
+1
-1
@@ -15,7 +15,6 @@ 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 \; }
|
||||
@@ -23,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 ufw reload
|
||||
sudo nft list ruleset #| sudo tee /etc/nftables/port-forwarding.nft
|
||||
Reference in new issue
Block a user