From 25d6164f212b7c30f9f7338ab48a96ed9a1e3004 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 21 Jan 2013 11:51:33 -0800 Subject: [PATCH] Try to avoid ~combN chains when dealing with action chains. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index e0f739a13..f35e8a780 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -3137,7 +3137,7 @@ sub optimize_level8( $$$ ) { $progress = 1; replace_references $chainref1, $chainref->{name}, undef; - unless ( $chainref->{name} =~ /^~/ ) { + unless ( $chainref->{name} =~ /^~/ || $chainref1 =~ /^%/ ) { # # For simple use of the BLACKLIST section, we can end up with many identical # chains. To distinguish them from other renamed chains, we keep track of