feat(脚本): 添加ufw_remove

pull/534/merge
mack-a 2021-06-16 16:53:00 +08:00
parent a00bd7e98f
commit 023a4dbe18
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# wget -P /tmp -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/shell/ufw_remove.sh" && chmod 700 /tmp/ufw_remove.sh && /tmp/ufw_remove.sh
systemctl stop ufw
iptables -F
iptables -I INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -I OUTPUT -o eth0 -d 0.0.0.0/0 -j ACCEPT