diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index b58690207..919bb66b7 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -868,7 +868,7 @@ sub transform_rule( $;\$ ) { } else { $simple = 0; if ( $option eq 'm' ) { - $input =~ s/(\w+)\s*//; + $input =~ s/([\w-]+)\s*//; $option = $1; } }