Upload files to "/"

This commit is contained in:
bmixed committed 2026-09-25 23:24:59 +00:00
1 parent 472785ecfd
commit 2800526719
5 files changed
+48 -8

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
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 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 nft list ruleset #| sudo tee /etc/nftables/port-forwarding.nft