From 076b234f647a9ac509298ae49a6e2ab87602af1f Mon Sep 17 00:00:00 2001 From: bbruns Date: Sun, 26 Sep 2010 22:10:18 +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 e654956..1be7ebe 100755 --- a/bin/firewall-sosdg +++ b/bin/firewall-sosdg @@ -267,7 +267,7 @@ if [ "$TCPPORTS" ] || [ "$UDPPORTS" ]; then PORTS_COUNT=${#TCPPORTS[@]} PORTS_COUNT_CURR=0 while [[ $PORTS_COUNT_CURR < $PORTS_COUNT ]]; do - for ((i=$PORTS_COUNT_CURR; i <=(($PORTS_COUNT_CURR+(($NF_MULTI_MAX_PORTS-1)))); i++)); do + for ((i=$PORTS_COUNT_CURR; i <=(($PORTS_COUNT_CURR+(($NF_MULTIPORT_MAX_PORTS-1)))); i++)); do if [ ${TCPPORTS[$i]} ]; then PORTS="${PORTS},${TCPPORTS[$i]}" fi @@ -570,7 +570,7 @@ if [ $IPV6 ]; then PORTS_COUNT=${#IPV6TCP[@]} PORTS_COUNT_CURR=0 while [[ $PORTS_COUNT_CURR < $PORTS_COUNT ]]; do - for ((i=$PORTS_COUNT_CURR; i <=(($PORTS_COUNT_CURR+(($NF_MULTI_MAX_PORTS-1)))); i++)); do + for ((i=$PORTS_COUNT_CURR; i <=(($PORTS_COUNT_CURR+(($NF_MULTIPORT_MAX_PORTS-1)))); i++)); do if [ ${IPV6TCP[$i]} ]; then PORTS="${PORTS},${IPV6TCP[$i]}" fi