From 302246d3acf4b0be4d22f4358f5c5f764897ea0d Mon Sep 17 00:00:00 2001 From: chunyu Date: Mon, 10 Mar 2025 11:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E7=81=AB=E5=A2=99=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/install.sh b/install.sh index 413886e..4af7bbd 100644 --- a/install.sh +++ b/install.sh @@ -404,8 +404,6 @@ table inet filter { iifname "lo" accept ct state established,related accept ip saddr { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 } accept - tcp dport 22 accept - udp dport 53 accept } chain forward { type filter hook forward priority 0; policy accept; @@ -429,8 +427,6 @@ EOF iptables -A INPUT -s 10.0.0.0/8 -j ACCEPT iptables -A INPUT -s 172.16.0.0/12 -j ACCEPT iptables -A INPUT -s 192.168.0.0/16 -j ACCEPT - iptables -A INPUT -p tcp --dport 22 -j ACCEPT - iptables -A INPUT -p udp --dport 53 -j ACCEPT iptables -A FORWARD -i "$INTERFACE" -j ACCEPT iptables -t nat -A POSTROUTING -o "$INTERFACE" -j MASQUERADE