From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 3/3] rules.pl: Prevent from cleanup the IPSWHITELIST set. Date: Wed, 06 Apr 2022 21:12:45 +0200 Message-ID: <20220406191245.4218-3-stefan.schantl@ipfire.org> In-Reply-To: <20220406191245.4218-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0950729620207238523==" List-Id: --===============0950729620207238523== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Init the IPSWHITELIST set as loaded to prevent from destroying during cleanup. Signed-off-by: Stefan Schantl --- config/firewall/rules.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl index 19dc7a6d1..0591a47be 100644 --- a/config/firewall/rules.pl +++ b/config/firewall/rules.pl @@ -73,7 +73,10 @@ my %confignatfw=(); my %locationsettings = ( "LOCATIONBLOCK_ENABLED" => "off" ); -my %ipset_loaded_sets = (); +my %ipset_loaded_sets = ( + "IPSWHITELIST" => "1", +); + my @ipset_used_sets = (); my $configfwdfw = "${General::swroot}/firewall/config"; -- 2.30.2 --===============0950729620207238523==--