More BPORT/Dynamic Zone stuff

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6600 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-06-19 19:42:49 +00:00
parent 17f9137693
commit 34507e4057
2 changed files with 4 additions and 1 deletions

View File

@ -233,6 +233,7 @@ determine_zones()
ZONES=
IPV4_ZONES=
IPSEC_ZONES=
BPORT_ZONES=
[ "$IPSECFILE" = zones ] && new_zone_file=Yes || test -n "${FW:=fw}"
@ -295,7 +296,8 @@ determine_zones()
[ "$PROGRAM" = compiler ] && startup_error "Invalid Zone Type: $type"
list_search $zone $ZONES $FW && startup_error "Zone $zone is defined more than once"
merge_zone
IPV4_ZONES="$IPV4_ZONES $zone"
BPORT_ZONES="$BPORT_ZONES $zone"
BRIDGING=Yes
;;
*)
startup_error "Invalid Zone Type: $type"

View File

@ -174,6 +174,7 @@ add_to_zone() # $1...${n-1} = <interface>[:<hosts>] $n = zone
# Insert new rules into the filter table for the passed interface
#
while read z1 z2 chain; do
[ -z "$chain" ] && continue
[ "$z1" = "$z2" ] && op="-I" || op="-A"
if [ "$z1" = "$zone" ]; then
if [ "$z2" = "$FW" ]; then