Allow 'all' in the ORIGINAL DEST column

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6446 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-27 11:58:19 +00:00
parent 4f14ef91c5
commit 2e2f1e2977

View File

@ -985,6 +985,10 @@ sub process_rule1 ( $$$$$$$$$$ ) {
fatal_error "No policy defined from zone $sourcezone to zone $destzone" unless $policy;
fatal_error "Rules may not override a NONE policy" if $policy eq 'NONE';
#
# For compatibility with older Shorewall versions
#
$origdest = ALLIPv4 if $origdest eq 'all';
#
# Generate Fixed part of the rule
#
$rule = join( '', do_proto($proto, $ports, $sports), do_ratelimit( $ratelimit, $basictarget ) , do_user( $user ) , do_test( $mark , 0xFF ) );