Update pfw
This commit is contained in:
1 parent
12b12debd6
commit
dd5caac547
1 file changed
+2
@@ -12,6 +12,8 @@ oipa=$3
|
|||||||
#sudo iptables -t nat -L -n -v
|
#sudo iptables -t nat -L -n -v
|
||||||
#sudo iptables-persistent
|
#sudo iptables-persistent
|
||||||
|
|
||||||
|
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
|
sudo sysctl -w net.ipv4.ip_forward=1
|
||||||
sudo nft add table ip nat
|
sudo nft add table ip nat
|
||||||
sudo nft add chain ip nat prerouting { type nat hook prerouting priority -100 \; }
|
sudo nft add chain ip nat prerouting { type nat hook prerouting priority -100 \; }
|
||||||
|
|||||||
Reference in new issue
Block a user