diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 10cead5ee..e07c6f1c5 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -2516,6 +2516,9 @@ sub ensure_audit_blacklog_chain( $$$ ) { log_rule_limit( $level , $logchainref , 'blacklst' , $disposition , "$globals{LOGLIMIT}" , '', 'add', '' ); add_ijump( $logchainref, j => 'AUDIT', targetopts => '--type ' . lc $target ); + + $target =~ s/^A_//; + add_ijump( $logchainref, g => $target ); } diff --git a/Shorewall/Perl/Shorewall/Misc.pm b/Shorewall/Perl/Shorewall/Misc.pm index 9db89cd20..85a546938 100644 --- a/Shorewall/Perl/Shorewall/Misc.pm +++ b/Shorewall/Perl/Shorewall/Misc.pm @@ -1165,7 +1165,7 @@ sub setup_mac_lists( $ ) { my $target = $globals{MACLIST_TARGET}; my $level = $config{MACLIST_LOG_LEVEL}; my $disposition = $config{MACLIST_DISPOSITION}; - my $audit = $disposition =~ s/^A_//; + my $audit = ( $disposition =~ s/^A_// ); my $ttl = $config{MACLIST_TTL}; progress_message2 "$doing MAC Filtration -- Phase $phase...";