mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-15 18:18:36 +01:00
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:
parent
4f14ef91c5
commit
2e2f1e2977
@ -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 ) );
|
||||
|
Loading…
Reference in New Issue
Block a user