From 023a4dbe185035750876b00461a31053716549c8 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Wed, 16 Jun 2021 16:53:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E6=B7=BB=E5=8A=A0u?= =?UTF-8?q?fw=5Fremove?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/ufw_remove.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 shell/ufw_remove.sh diff --git a/shell/ufw_remove.sh b/shell/ufw_remove.sh new file mode 100644 index 0000000..8067438 --- /dev/null +++ b/shell/ufw_remove.sh @@ -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