mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
firewall: Silence warnings if blocklist logging is not set.
Reference: #12979. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
b80932932a
commit
1b70ead36d
@@ -761,7 +761,7 @@ sub ipblocklist () {
|
||||
}
|
||||
|
||||
# Check if logging is enabled.
|
||||
if($blocklistsettings{'LOGGING'} eq "on") {
|
||||
if($blocklistsettings{'LOGGING'}) && ($blocklistsettings{'LOGGING'} eq "on")) {
|
||||
# Create logging rule.
|
||||
run("$IPTABLES -A ${blocklist}_DROP -j LOG -m limit --limit 10/second --log-prefix \"BLKLST_$blocklist \"");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user