]> git.openstreetmap.org Git - chef.git/commitdiff
Adjust trigger for evasive jail
authorTom Hughes <tom@compton.nu>
Tue, 12 Mar 2024 09:00:20 +0000 (09:00 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 12 Mar 2024 09:00:20 +0000 (09:00 +0000)
cookbooks/apache/recipes/default.rb

index 80e9e473f1aa004c302e1f0dceab577fa5634d1a..0a8962b5347cbdb3143257ed7cbe033bdd04fc89 100644 (file)
@@ -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"