From 4b00fff72b04d401db790e9a2b50b8afd80fff43 Mon Sep 17 00:00:00 2001 From: Olivier Navas Date: Fri, 10 Jun 2022 10:10:35 +0200 Subject: [PATCH] =?UTF-8?q?Augmentation=20du=20nombre=20de=20tentatives=20?= =?UTF-8?q?avant=20ban,=20dur=C3=A9e=20de=20recidive=20plus=20progressive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/jail.local | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/jail.local b/templates/jail.local index 8642d2b..fd68533 100644 --- a/templates/jail.local +++ b/templates/jail.local @@ -7,7 +7,8 @@ destemail = {{ reverse_proxy_default_serveradmin_email }} banaction = nftables-multiport banaction_allports = nftables-allports action = %(action_mwl)s - +maxretry = 10 +bantime = 1h apache_error_log = /var/log/apache2/*error.log apache_access_log = /var/log/apache2/*access.log @@ -37,9 +38,6 @@ enabled = true [apache-fakegooglebot] enabled = true -[apache-modsecurity] -enabled = true - [apache-shellshock] enabled = true @@ -47,3 +45,6 @@ enabled = true [recidive] enabled = true +bantime = 4h +bantime.increment = true +bantime.maxtime = 1w