开放所有端口
bash <(curl -sL haoduck.com/sh/oracleopen.sh)
rm -f /etc/iptables/rules.v4
rm -f /etc/iptables/rules.v6
iptables -P INPUT ACCEPT
iptables -F
echo "开放防火墙完成"
开放指定端口
sudo iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 8888 -j ACCEPT
sudo iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 80 -j ACCEPT
sudo iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 443 -j ACCEPT
sudo iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 22 -j ACCEPT
sudo iptables-save
sudo apt-get update
sudo apt-get install iptables-persistent -y
sudo netfilter-persistent save
sudo netfilter-persistent reload
apt update && apt dist-upgrade -y && apt autoremove -y