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 ( $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