Upload files to "/"
This commit is contained in:
1 parent
a2fc1fd1c2
commit
33c66ef06c
5 files changed
+7
-3
No files matched your search
@@ -5,8 +5,9 @@ clear
|
||||
sudo nft -f /etc/nftables.conf
|
||||
sudo sysctl -w net.ipv4.ip_forward=1
|
||||
sudo sed -i 's/DEFAULT_FORWARD_POLICY="DROP"/DEFAULT_FORWARD_POLICY="ACCEPT"/g' /etc/default/ufw
|
||||
sudo ufw reload
|
||||
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 postrouting { type nat hook postrouting priority 100 \; }
|
||||
sudo ufw reload ; sudo ufw status
|
||||
sudo ufw status
|
||||
sudo nft list ruleset #| sudo tee /etc/nftables/port-forwarding.nft
|
||||
Reference in new issue
Block a user