From d8e40e38f51de3646c42cbab2bce82fb7ef8a7bb Mon Sep 17 00:00:00 2001 From: bbruns Date: Sun, 26 Sep 2010 21:20:09 +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 5a7593a..840adc9 100755 --- a/bin/firewall-sosdg +++ b/bin/firewall-sosdg @@ -273,7 +273,7 @@ if [ "$TCPPORTS" ] || [ "$UDPPORTS" ]; then fi done echo -en "${PURPLE}Multiport-TCP${DEFAULT_COLOR}/${GREEN}${PORTS#,}" - ${IPTABLES} -A INPUT -p tcp -m multiport --dports ${PORTS#,} -j ACCEPT" + ${IPTABLES} -A INPUT -p tcp -m multiport --dports ${PORTS#,} -j ACCEPT unset PORTS PORTS_COUNT_CURR=$y done @@ -576,7 +576,7 @@ if [ $IPV6 ]; then fi done echo -en "${PURPLE}Multiport-TCP${DEFAULT_COLOR}/${GREEN}${PORTS#,}" - ${IPTABLES} -A INPUT -p tcp -m multiport --dports ${PORTS#,} -j ACCEPT" + $IPTABLES -A INPUT -p tcp -m multiport --dports ${PORTS#,} -j ACCEPT unset PORTS PORTS_COUNT_CURR=$y done