From 69a0061d0f7b501f7be8d37c3b5aaa4cf6c65bf5 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 27 Jul 2017 14:55:19 -0700 Subject: [PATCH] Correct handling of MAC addresses in the accounting file. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Accounting.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Accounting.pm b/Shorewall/Perl/Shorewall/Accounting.pm index 7f45f5326..7556da97a 100644 --- a/Shorewall/Perl/Shorewall/Accounting.pm +++ b/Shorewall/Perl/Shorewall/Accounting.pm @@ -266,7 +266,7 @@ sub process_accounting_rule1( $$$$$$$$$$$ ) { if ( $source eq 'any' || $source eq 'all' ) { $source = ALLIP; } else { - fatal_error "MAC addresses only allowed in the INPUT and FORWARD sections" if $source =~ /~/ && ( $asection == OUTPUT || ! $asection ); + fatal_error "MAC addresses only allowed in the INPUT and FORWARD sections" if $source =~ /~/ && ( $asection == OUTPUT_SECTION || ! $asection ); } if ( have_bridges && ! $asection ) {