diff --git a/Shorewall/Perl/Shorewall/Policy.pm b/Shorewall/Perl/Shorewall/Policy.pm index b1eb604d3..e513a58ae 100644 --- a/Shorewall/Perl/Shorewall/Policy.pm +++ b/Shorewall/Perl/Shorewall/Policy.pm @@ -409,7 +409,7 @@ sub apply_policy_rules() { ensure_filter_chain $name, 1; } - if ( $name =~ /^all2|2all$|^all-|-all$/ ) { + if ( $name =~ /^all[-2]|[-2]all$/ ) { run_user_exit $chainref; policy_rules $chainref , $policy, $loglevel , $default, $config{MULTICAST}; } diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index e9a923686..18938c248 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -1924,7 +1924,7 @@ sub generate_matrix() { next unless $zoneref->{bridge} eq $zone1ref->{bridge}; } - if ( $chain =~ /(2all|-all|_all)$/ ) { + if ( $chain =~ /(2all|-all)$/ ) { if ( $chain ne $last_chain ) { $last_chain = $chain; push @dest_zones, @temp_zones;