forked from extern/shorewall_code
Don't create log chain for 'RETURN' rules
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
4546394531
commit
8aaf4aab3a
@ -3256,7 +3256,7 @@ sub expand_rule( $$$$$$$$$$;$ )
|
||||
|
||||
if ( $loglevel ne '' ) {
|
||||
if ( $disposition ne 'LOG' ) {
|
||||
unless ( $logname ) {
|
||||
unless ( $logname || $disposition eq 'RETURN' ) {
|
||||
#
|
||||
# Find/Create a chain that both logs and applies the target action
|
||||
# and jump to the log chain if all of the rule's conditions are met
|
||||
@ -3270,7 +3270,7 @@ sub expand_rule( $$$$$$$$$$;$ )
|
||||
log_rule_limit(
|
||||
$loglevel ,
|
||||
$chainref ,
|
||||
$logname ,
|
||||
$logname || $chain,
|
||||
$disposition ,
|
||||
'',
|
||||
$logtag,
|
||||
|
Loading…
Reference in New Issue
Block a user