From ca6e79d8641e940a8ba4c989953fb8df465928f8 Mon Sep 17 00:00:00 2001 From: Arias Oscar Date: Thu, 25 Jun 2026 17:11:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Diptables=E6=94=BE?= =?UTF-8?q?=E8=A1=8C=E7=AB=AF=E5=8F=A3=E6=B7=BB=E5=8A=A0=E8=BF=87=E5=A4=9A?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=BA=A2=E5=87=BA=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/starts/fw_iptables.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/starts/fw_iptables.sh b/scripts/starts/fw_iptables.sh index 70c7b1ff..57dc1f4e 100644 --- a/scripts/starts/fw_iptables.sh +++ b/scripts/starts/fw_iptables.sh @@ -72,7 +72,22 @@ start_ipt_route() { #iptables-route通用工具 done fi #将所在链指定流量指向shellcrash表 - "$1" $w -t "$2" -I "$3" -p "$5" $ports -j "$4" + if [ -n "$ports" ]; then + clean_ports=$(echo "$multiport" | sed 's/ //g') + echo "$clean_ports" | awk -F, '{ + for(i=1; i<=NF; i+=9) { + group="" + for(j=i; j