From e19a7aaf40e64aefa57d3deb160d5f84a12a3a6d Mon Sep 17 00:00:00 2001 From: "bruns@2mbit.com" Date: Tue, 22 Jun 2010 04:41:43 +0000 Subject: [PATCH] --- rc.firewall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc.firewall b/rc.firewall index d5c0111..4e5dded 100755 --- a/rc.firewall +++ b/rc.firewall @@ -174,15 +174,15 @@ fi if [ $PORTFW ] && [ $NAT ]; then echo -en "\E[33mAdding port forward for:\E[37m " for i in `grep -v "\#" $PORTFW`; do - echo -en "\E[32m${PORTADD[0]}\E[37m/\E[35m${PORTADD[1]}\E[37m->${PORTADD[2]}:${PORTADD[3]} " PORTADD=( ${i//:/ } ) $IPTABLES -A PREROUTING -t nat -i $NATEXTIF -p ${PORTADD[1]} \ --dport ${PORTADD[0]} -j DNAT --to \ ${PORTADD[2]}:${PORTADD[3]} $IPTABLES -A INPUT -p ${PORTADD[1]} -m state --state NEW \ --dport ${PORTADD[0]} -i $NATEXTIF -j ACCEPT - + echo -en "\E[32m${PORTADD[0]}\E[37m/\E[35m${PORTADD[1]}\E[37m->${PORTADD[2]}:${PORTADD[3]} " done +echo -ne "\n" fi if [ $LANDHCPSERVER ]; then