Forward Firewall: 0.9.8.7 Implemented SNAT/DNAT

reorganized firewall chains
This commit is contained in:
Alexander Marx
2013-03-20 11:03:29 +01:00
committed by Michael Tremer
parent 93b75f31ad
commit 6b681c40d2
5 changed files with 160 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ if [ "$POLICY" == "MODE1" ]; then
/sbin/iptables -A POLICYFWD -j DROP -m comment --comment "DROP_FORWARD"
fi
else
/sbin/iptables -A POLICYFWD -j DROP -m comment --comment "DROP_FORWARD"
/sbin/iptables -A POLICYFWD -j ACCEPT -m comment --comment "DROP_FORWARD"
fi
#OUTGOINGFW
@@ -40,7 +40,7 @@ if [ "$POLICY1" == "MODE1" ]; then
/sbin/iptables -A POLICYOUT -j DROP -m comment --comment "DROP_OUTPUT"
fi
else
/sbin/iptables -A POLICYOUT -j DROP -m comment --comment "DROP_OUTPUT"
/sbin/iptables -A POLICYOUT -j ACCEPT -m comment --comment "DROP_OUTPUT"
fi
#INPUT
if [ "$FWPOLICY2" == "REJECT" ]; then