From 5742e5a6ab27a6437d93fc82ec6fcdebc0e7b869 Mon Sep 17 00:00:00 2001 From: Bruno TATU Date: Wed, 25 Oct 2023 11:34:55 +0200 Subject: [PATCH] Proposition d'emplacement des jails --- HowtoFail2Ban.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/HowtoFail2Ban.md b/HowtoFail2Ban.md index 168fd068..9587e106 100644 --- a/HowtoFail2Ban.md +++ b/HowtoFail2Ban.md @@ -373,7 +373,7 @@ Voici un exemple avec un filtre `/etc/fail2ban/filter.d/dos-http.conf` qui va co failregex = -.*"GET.*HTTP.* ~~~ -puis on définit une jail du type `/etc/fail2ban/jail.d/apache-wp.conf` : +puis on définit une jail du type `/etc/fail2ban/jail.d/dos-http.conf` : ~~~{.ini} @@ -442,7 +442,7 @@ failregex = -.*"POST.*/wp-login.php HTTP.* 200 -.*"POST.*/xmlrpc.php.* ~~~ -puis on définit une jail du type : +puis on définit une jail du type `/etc/fail2ban/jail.d/apache-wp.conf` : ~~~{.ini} [apache-wp] @@ -476,7 +476,7 @@ On ajoute ensuite un filtre dans `/etc/fail2ban/filter.d/apache-wp.conf`: failregex = .*POST.*(wp-login\.php|xmlrpc\.php).* 401 ~~~ -puis on définit une jail du type : +puis on définit une jail du type `/etc/fail2ban/jail.d/apache-wp.conf` : ~~~{.ini} [apache-wp] @@ -604,7 +604,7 @@ On ajoute un filtre dans `/etc/fail2ban/filter.d/owncloud.conf` : failregex={"app":"core","message":"Login failed: user '.*' , wrong password, IP:","level":2,"time":".*"} ~~~ -puis on définit une jail du type : +puis on définit une jail du type `/etc/fail2ban/jail.d/owncloud.conf`: ~~~{.ini} [owncloud] @@ -627,7 +627,7 @@ On ajoute un filtre dans `/etc/fail2ban/filter.d/apache-joomla.conf` : failregex = -.*"POST.*/administrator/index.php HTTP ~~~ -puis on définit une jail du type : +puis on définit une jail du type `/etc/fail2ban/jail.d/apache-joomla.conf`: ~~~{.ini} [apache-joomla] @@ -683,7 +683,7 @@ On ajoute un filtre dans `/etc/fail2ban/filter.d/apache-prestashop.conf` : failregex = -.*"POST.*/login.* ~~~ -puis on définit une jail du type : +puis on définit une jail du type `/etc/fail2ban/jail.d/apache-prestashop.conf`: ~~~{.ini} [apache-prestashop]