From 95e906e40e739302861ee701b9acef2fbd0ef11e Mon Sep 17 00:00:00 2001 From: bbruns Date: Sun, 26 Sep 2010 22:11:20 +0000 Subject: [PATCH] Fixes for multiport --- bin/firewall-sosdg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/firewall-sosdg b/bin/firewall-sosdg index 1be7ebe..41de161 100755 --- a/bin/firewall-sosdg +++ b/bin/firewall-sosdg @@ -272,7 +272,7 @@ if [ "$TCPPORTS" ] || [ "$UDPPORTS" ]; then PORTS="${PORTS},${TCPPORTS[$i]}" fi done - echo -en "${PURPLE}Multiport-TCP${DEFAULT_COLOR}/${GREEN}${PORTS#,}" + echo -en "${PURPLE}Multiport-TCP${DEFAULT_COLOR}/${GREEN}${PORTS#,} " $IPTABLES -A INPUT -p tcp -m multiport --dports ${PORTS#,} -j ACCEPT unset PORTS PORTS_COUNT_CURR=$i @@ -575,7 +575,7 @@ if [ $IPV6 ]; then PORTS="${PORTS},${IPV6TCP[$i]}" fi done - echo -en "${PURPLE}Multiport-TCP${DEFAULT_COLOR}/${GREEN}${PORTS#,}" + echo -en "${PURPLE}Multiport-TCP${DEFAULT_COLOR}/${GREEN}${PORTS#,} " $IP6TABLES -A INPUT -p tcp -m multiport --dports ${PORTS#,} -j ACCEPT unset PORTS PORTS_COUNT_CURR=$i