From 50f3fc4e69404e905716e38ea4ebbfdfdf1a95e7 Mon Sep 17 00:00:00 2001 From: "bruns@2mbit.com" Date: Thu, 13 Aug 2009 22:21:23 +0000 Subject: [PATCH] --- rc.firewall | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rc.firewall b/rc.firewall index db31a52..6283e8b 100755 --- a/rc.firewall +++ b/rc.firewall @@ -86,9 +86,10 @@ if [ $ROUTING ]; then FWINT2=${ROUTE[2]} FWIP1=${ROUTE[1]} FWIP2=${ROUTE[3]} - echo 1 > /proc/sys/net/ipv4/conf/{$FWINT1,$FWINT2}/forwarding - $IPTABLES -A FORWARD -i $FWINT1 -o $FWINT1 \ - -s $FWIP1 -d $FWIP2} -j ACCEPT + echo 1 > /proc/sys/net/ipv4/conf/$FWINT1/forwarding + echo 1 > /proc/sys/net/ipv4/conf/$FWINT2/forwarding + $IPTABLES -A FORWARD -i $FWINT1 -o $FWINT2 \ + -s $FWIP1 -d $FWIP2 -j ACCEPT if [ ${ROUTE[4]} == "1" ]; then echo -n "$FWINT1:$FWIP1}<->$FWINT1:$FWIP2} " $IPTABLES -A FORWARD -o $FWINT1 -i $FWINT2 \