mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-29 11:04:03 +01:00
Don't create log chain for 'RETURN' rules
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
16bf45fce4
commit
eb8d96135e
@ -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