From eb8d96135e30359993b50543ca6635a67c02dfc6 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 15 Feb 2010 14:24:00 -0800 Subject: [PATCH] Don't create log chain for 'RETURN' rules Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index a8694b75c..0153e804e 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -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,