mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-01 12:03:40 +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 ( $loglevel ne '' ) {
|
||||||
if ( $disposition ne 'LOG' ) {
|
if ( $disposition ne 'LOG' ) {
|
||||||
unless ( $logname ) {
|
unless ( $logname || $disposition eq 'RETURN' ) {
|
||||||
#
|
#
|
||||||
# Find/Create a chain that both logs and applies the target action
|
# 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
|
# 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(
|
log_rule_limit(
|
||||||
$loglevel ,
|
$loglevel ,
|
||||||
$chainref ,
|
$chainref ,
|
||||||
$logname ,
|
$logname || $chain,
|
||||||
$disposition ,
|
$disposition ,
|
||||||
'',
|
'',
|
||||||
$logtag,
|
$logtag,
|
||||||
|
Loading…
Reference in New Issue
Block a user