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