From b6c11538099480143d2d5daaea5465fdfc644eea Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 21 Dec 2008 17:50:12 +0000 Subject: [PATCH] Fix zone-less interface handling git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9157 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 90f7855da..fc493cc46 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -592,6 +592,8 @@ sub use_forward_chain($) { return 1 if $interfaceref->{nets} > 1; my $zone = $interfaceref->{zone}; + + return 1 unless $zone; # # Interface associated with a single zone -- Must use the interface chain if # the zone has multiple interfaces @@ -631,6 +633,8 @@ sub use_input_chain($) { return 0 unless $nets; my $zone = $interfaceref->{zone}; + + return 1 unless $zone; # # Interface associated with a single zone -- Must use the interface chain if # the zone has multiple interfaces