公告板
版本库
filestore
活动
搜索
登录
Hunter
/
Linux/v2ray-agent
mack-a/v2ray-agent
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
update install.sh
Hunter0x7c7
2022-08-11
14a4e33f6d016fbdd87f40427fa078b676ab03a0
[Hunter/Linux/v2ray-agent.git]
/
shell
/
ufw_remove.sh
1
2
3
4
5
6
7
#!/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
systemctl disable 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