From f904866336791f86c14f1d5e0629320d4db5e6e9 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 12 Nov 2009 12:30:08 -0800 Subject: [PATCH] More minor cleanup of chain name change --- Shorewall/Perl/Shorewall/Policy.pm | 2 +- Shorewall/Perl/Shorewall/Rules.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;