master
parent
316002fc2d
commit
0985afeb87
|
@ -122,11 +122,11 @@ if [ $ROUTING ]; then
|
||||||
$IPTABLES -A FORWARD -i $FWINT1 -o $FWINT2 \
|
$IPTABLES -A FORWARD -i $FWINT1 -o $FWINT2 \
|
||||||
-s $FWIP1 -d $FWIP2 -j ACCEPT
|
-s $FWIP1 -d $FWIP2 -j ACCEPT
|
||||||
if [ ${ROUTE[4]} == "1" ]; then
|
if [ ${ROUTE[4]} == "1" ]; then
|
||||||
echo -n "$FWINT1:$FWIP1<->$FWINT2:$FWIP2} "
|
echo -n "$FWINT1:$FWIP1<->$FWINT2:$FWIP2 "
|
||||||
$IPTABLES -A FORWARD -o $FWINT1 -i $FWINT2 \
|
$IPTABLES -A FORWARD -o $FWINT1 -i $FWINT2 \
|
||||||
-d $FWIP1 -s $FWIP2 -j ACCEPT
|
-d $FWIP1 -s $FWIP2 -j ACCEPT
|
||||||
else
|
else
|
||||||
echo -n "$FWINT1:$FWIP1->$FWINT2:$FWIP2} "
|
echo -n "$FWINT1:$FWIP1->$FWINT2:$FWIP2 "
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue