From 3ef158cdef77ce682d5edda8bc5bedcf9c19a5a1 Mon Sep 17 00:00:00 2001 From: bbruns Date: Sat, 21 Aug 2010 17:20:53 +0000 Subject: [PATCH] Fixing more of my errors --- rc.firewall | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc.firewall b/rc.firewall index 7543b11..ecad200 100755 --- a/rc.firewall +++ b/rc.firewall @@ -300,9 +300,9 @@ if [ -s "$BASEDIR/include/ipv4_custom_nat" ]; then fi if [ $NAT ]; then - if [ $NAT_RANGE ]; then + if [ "$NAT_RANGE" ]; then display_c YELLOW "Adding NAT rule: " N - for i in "$NAT_RANGE"; do + for i in $NAT_RANGE; do NAT_RULE=( ${i//:/ } ) case ${NAT_RULE[0]} in SNAT) @@ -321,7 +321,7 @@ if [ $NAT ]; then *) display_c RED "Invalid NAT rule in NAT_RANGE" ;; esac done - echo -ne "\n" + reset_color fi #================= # This section is going away in 1.0