Forward Firewall: BUGFIX: When editing a rule and changing position, no other changes where saved.

added the DMZHOLES Rule to init.d/firewall (but chnaged DMZHOLES to FORWARDFW
This commit is contained in:
Alexander Marx
2013-01-14 13:56:36 +01:00
committed by Michael Tremer
parent 02da9f7baf
commit e44fa0792b
2 changed files with 94 additions and 89 deletions

View File

@@ -241,7 +241,14 @@ case "$1" in
/sbin/iptables -t nat -A POSTROUTING -j REDNAT
iptables_red
# DMZ pinhole chain. setdmzholes setuid prog adds rules here to allow
# ORANGE to talk to GREEN / BLUE.
/sbin/iptables -N DMZHOLES
if [ "$ORANGE_DEV" != "" ]; then
/sbin/iptables -A FORWARD -i $ORANGE_DEV -m state --state NEW -j FORWARDFW
fi
# PORTFWACCESS chain, used for portforwarding
/sbin/iptables -N PORTFWACCESS
/sbin/iptables -A FORWARD -m state --state NEW -j PORTFWACCESS