diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index b7dd104f2..0d6f6f6a5 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -3396,7 +3396,7 @@ sub delete_duplicates { next RULE unless compare_values( $baseref->{$key}, $ruleref->{$key} ); } - $duplicate = 1; + $duplicate = $ruleref->{mode} == CAT_MODE;; } if ( $duplicate ) {