forked from extern/shorewall_code
Don't create a zone forwarding chain for local zones
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
31844d22cd
commit
2f58d4e368
@ -2288,10 +2288,13 @@ sub generate_matrix() {
|
|||||||
#
|
#
|
||||||
for my $zone ( @zones ) {
|
for my $zone ( @zones ) {
|
||||||
my $zoneref = find_zone( $zone );
|
my $zoneref = find_zone( $zone );
|
||||||
if ( @zones > 2 || $zoneref->{complex} ) {
|
|
||||||
handle_complex_zone( $zone, $zoneref );
|
unless ( $zoneref->{type} == LOCAL ) {
|
||||||
} else {
|
if ( @zones > 2 || $zoneref->{complex} ) {
|
||||||
new_standard_chain zone_forward_chain( $zone ) if @zones > 1;
|
handle_complex_zone( $zone, $zoneref );
|
||||||
|
} else {
|
||||||
|
new_standard_chain zone_forward_chain( $zone ) if @zones > 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
|
@ -3986,9 +3986,8 @@ sub process_rules() {
|
|||||||
#
|
#
|
||||||
for my $zone ( @zones ) {
|
for my $zone ( @zones ) {
|
||||||
my $zoneref = find_zone( $zone );
|
my $zoneref = find_zone( $zone );
|
||||||
my $simple = @zones <= 2 && ! $zoneref->{complex};
|
|
||||||
|
|
||||||
unless ( @zones <= 2 && ! $zoneref->{complex} ) {
|
unless ( $zoneref->{type} == LOCAL || ( @zones <= 2 && ! $zoneref->{complex} ) ) {
|
||||||
#
|
#
|
||||||
# Complex zone or we have more than one non-firewall zone -- create a zone forwarding chain
|
# Complex zone or we have more than one non-firewall zone -- create a zone forwarding chain
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user