From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 1/2] firewall: Silence warnings if blocklist logging is not set. Date: Tue, 07 Mar 2023 13:17:34 +0100 Message-ID: <20230307121735.6485-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2667963448598979172==" List-Id: --===============2667963448598979172== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reference: #12979. Signed-off-by: Stefan Schantl --- config/firewall/rules.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl index 1b628df16..80985ca53 100644 --- a/config/firewall/rules.pl +++ b/config/firewall/rules.pl @@ -761,7 +761,7 @@ sub ipblocklist () { } =20 # Check if logging is enabled. - if($blocklistsettings{'LOGGING'} eq "on") { + if($blocklistsettings{'LOGGING'}) && ($blocklistsettings{'LOGGING'} eq "o= n")) { # Create logging rule. run("$IPTABLES -A ${blocklist}_DROP -j LOG -m limit --limit 10/second --= log-prefix \"BLKLST_$blocklist \""); } --=20 2.30.2 --===============2667963448598979172==--