diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 34e18def6..06ea8e348 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -3360,8 +3360,8 @@ sub get_configuration( $ ) { default_log_level 'LOGALLNEW', ''; if ( $val = $config{MACLIST_DISPOSITION} ) { - if ( $val =~ /^((?:A_)?(?:DROP))$/ ) { - $globals{MACLIST_TARGET} = $1; + if ( $val =~ /^(?:A_)?DROP$/ ) { + $globals{MACLIST_TARGET} = $val; } elsif ( $val eq 'REJECT' ) { $globals{MACLIST_TARGET} = 'reject'; } elsif ( $val eq 'A_REJECT' ) {