From: Stefan Schantl <stefan.schantl@ipfire.org>
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 [thread overview]
Message-ID: <20220406191245.4218-3-stefan.schantl@ipfire.org> (raw)
In-Reply-To: <20220406191245.4218-1-stefan.schantl@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 680 bytes --]
Init the IPSWHITELIST set as loaded to prevent from destroying
during cleanup.
Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
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
prev parent reply other threads:[~2022-04-06 19:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-06 19:12 [PATCH 1/3] ids-functions.pl: Generate ipset based whitelist Stefan Schantl
2022-04-06 19:12 ` [PATCH 2/3] suricata: Handle ipset based whitelist in initscript Stefan Schantl
2022-04-06 19:12 ` Stefan Schantl [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220406191245.4218-3-stefan.schantl@ipfire.org \
--to=stefan.schantl@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox