Handling of NONE policy with SOURCE=all

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6030 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-20 00:02:41 +00:00
parent 424d336ac1
commit e2e9cb78e6

View File

@ -1187,7 +1187,12 @@ sub process_rule ( $$$$$$$$$ ) {
}
}
} else {
process_rule1 $target, $zone, $dest , $proto, $ports, $sports, $origdest, $ratelimit, $user;
my $destzone = $dest;
$destzone =~ s/:.*//;
my $policychainref = $filter_table->{"${zone}2${destzone}"}{policychain};
if ( $policychainref->{policy} ne 'NONE' ) {
process_rule1 $target, $zone, $dest , $proto, $ports, $sports, $origdest, $ratelimit, $user;
}
}
}
}