From c375b083a4ae5170c4c3c04e0737875b2e69f62c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 12 Mar 2024 09:00:20 +0000 Subject: [PATCH] Adjust trigger for evasive jail --- cookbooks/apache/recipes/default.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbooks/apache/recipes/default.rb b/cookbooks/apache/recipes/default.rb index 80e9e473f..0a8962b53 100644 --- a/cookbooks/apache/recipes/default.rb +++ b/cookbooks/apache/recipes/default.rb @@ -119,10 +119,10 @@ end fail2ban_jail "apache-evasive" do filter "apache-evasive" backend "systemd" - journalmatch "SYSLOG_IDENTIFIER=mod_evasive" + journalmatch "_SYSTEMD_UNIT=apache2.service SYSLOG_IDENTIFIER=mod_evasive" ports [80, 443] - findtime "1m" - maxretry 50 + findtime "10m" + maxretry 3 end munin_plugin "apache_accesses" -- 2.39.5