mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
Fix subtle bug introduced in last commit
Signed-off-by: Tom Eastep <teastep@shorewall.net> git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9842 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
20cfd0033c
commit
b734d3af31
@ -2697,7 +2697,7 @@ sub expand_rule( $$$$$$$$$$ )
|
||||
|
||||
$source_match = match_source_net( $inet, $restriction ) unless $capabilities{KLUDGEFREE};
|
||||
my $dest_match = match_dest_net( $dnet );
|
||||
my $rule = join( '', $rule, $source_match, $dest_match, $onet );
|
||||
my $predicates = join( '', $rule, $source_match, $dest_match, $onet );
|
||||
|
||||
if ( $loglevel ne '' ) {
|
||||
if ( $disposition ne 'LOG' ) {
|
||||
@ -2708,9 +2708,9 @@ sub expand_rule( $$$$$$$$$$ )
|
||||
#
|
||||
# Jump to the log chain if all of the rule's conditions are met
|
||||
#
|
||||
add_jump( $chainref, $logchainref, $builtin_target{$disposition}, $rule, 1 );
|
||||
add_jump( $chainref, $logchainref, $builtin_target{$disposition}, $predicates, 1 );
|
||||
|
||||
$rule = '';
|
||||
$predicates = '';
|
||||
|
||||
log_rule_limit(
|
||||
$loglevel ,
|
||||
@ -2730,13 +2730,13 @@ sub expand_rule( $$$$$$$$$$ )
|
||||
'' ,
|
||||
$logtag ,
|
||||
'add' ,
|
||||
$rule
|
||||
$predicates
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
unless ( $disposition eq 'LOG' ) {
|
||||
add_rule( $chainref, $rule . $target , 1 );
|
||||
add_rule( $chainref, $predicates . $target , 1 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user