Fix REDIRECT all

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6237 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-04 16:49:56 +00:00
parent c35b2ff458
commit caf7d528be

View File

@ -1200,7 +1200,7 @@ sub process_rule ( $$$$$$$$$$ ) {
} }
} else { } else {
my $destzone = (split /:/, $dest)[0]; my $destzone = (split /:/, $dest)[0];
fatal_error "Unknown destination zone ($destzone)" unless $zones{$destzone}; $destzone = $firewall_zone unless $zones{$destzone}; # We will revalidate the destination zone in process_rule1
my $policychainref = $filter_table->{"${zone}2${destzone}"}{policychain}; my $policychainref = $filter_table->{"${zone}2${destzone}"}{policychain};
if ( $intrazone || ( $zone ne $destzone ) ) { if ( $intrazone || ( $zone ne $destzone ) ) {
fatal_error "No policy from zone $zone to zone $destzone" unless $policychainref; fatal_error "No policy from zone $zone to zone $destzone" unless $policychainref;