diff --git a/Shorewall/Perl/Shorewall/Misc.pm b/Shorewall/Perl/Shorewall/Misc.pm index cfebcdd53..5c175b1b3 100644 --- a/Shorewall/Perl/Shorewall/Misc.pm +++ b/Shorewall/Perl/Shorewall/Misc.pm @@ -529,6 +529,10 @@ sub add_common_rules() { } } + # + # Delete 'sfilter' chain unless it has been referenced + # + $chainref->{referenced} = 0 unless @{$chainref = filter_table-{sfilter}}->{references}; run_user_exit1 'initdone';