Upload files to "/"

This commit is contained in:
bmixed committed 2026-09-26 01:37:16 +00:00
1 parent 728738c608
commit c35922ff5e
4 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -27,4 +27,4 @@ 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 status
sudo nft list ruleset #| sudo tee /etc/nftables/port-forwarding.nft
sudo nft list table ip nat #| sudo tee /etc/nftables/port-forwarding.nft
+1 -1
View File
@@ -7,5 +7,5 @@ sudo sysctl -w net.ipv4.ip_forward=0
sudo sed -i 's/DEFAULT_FORWARD_POLICY="ACCEPT"/DEFAULT_FORWARD_POLICY="DROP"/g' /etc/default/ufw
sudo ufw reload
sudo ufw status
sudo nft list ruleset; sudo rm -rf /etc/nftables/port-forwarding.nft
sudo nft list table ip nat; sudo rm -rf /etc/nftables/port-forwarding.nft
+1 -1
View File
@@ -10,4 +10,4 @@ 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 status
sudo nft list ruleset #| sudo tee /etc/nftables/port-forwarding.nft
sudo nft list table ip nat #| sudo tee /etc/nftables/port-forwarding.nft
+2 -1
View File
@@ -6,7 +6,8 @@ iprt=$1
oprt=$2
oipa=$3
sudo nft -f /etc/nftables.conf
sudo nft delete rule ip nat prerouting tcp dport $iprt dnat to $oipa:$oprt
sudo nft delete rule ip nat postrouting ip daddr $oipa masquerade
#sudo ufw status
sudo nft list ruleset #| sudo tee /etc/nftables/port-forwarding.nft
sudo nft list table ip nat #| sudo tee /etc/nftables/port-forwarding.nft