mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
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:
parent
17f9137693
commit
34507e4057
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user