Proposition d'emplacement des jails
This commit is contained in:
parent
97dbcacdc0
commit
5742e5a6ab
|
@ -373,7 +373,7 @@ Voici un exemple avec un filtre `/etc/fail2ban/filter.d/dos-http.conf` qui va co
|
||||||
failregex = <HOST> -.*"GET.*HTTP.*
|
failregex = <HOST> -.*"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}
|
~~~{.ini}
|
||||||
|
@ -442,7 +442,7 @@ failregex = <HOST> -.*"POST.*/wp-login.php HTTP.* 200
|
||||||
<HOST> -.*"POST.*/xmlrpc.php.*
|
<HOST> -.*"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}
|
~~~{.ini}
|
||||||
[apache-wp]
|
[apache-wp]
|
||||||
|
@ -476,7 +476,7 @@ On ajoute ensuite un filtre dans `/etc/fail2ban/filter.d/apache-wp.conf`:
|
||||||
failregex = <HOST>.*POST.*(wp-login\.php|xmlrpc\.php).* 401
|
failregex = <HOST>.*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}
|
~~~{.ini}
|
||||||
[apache-wp]
|
[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:<HOST>","level":2,"time":".*"}
|
failregex={"app":"core","message":"Login failed: user '.*' , wrong password, IP:<HOST>","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}
|
~~~{.ini}
|
||||||
[owncloud]
|
[owncloud]
|
||||||
|
@ -627,7 +627,7 @@ On ajoute un filtre dans `/etc/fail2ban/filter.d/apache-joomla.conf` :
|
||||||
failregex = <HOST> -.*"POST.*/administrator/index.php HTTP
|
failregex = <HOST> -.*"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}
|
~~~{.ini}
|
||||||
[apache-joomla]
|
[apache-joomla]
|
||||||
|
@ -683,7 +683,7 @@ On ajoute un filtre dans `/etc/fail2ban/filter.d/apache-prestashop.conf` :
|
||||||
failregex = <HOST> -.*"POST.*/login.*
|
failregex = <HOST> -.*"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}
|
~~~{.ini}
|
||||||
[apache-prestashop]
|
[apache-prestashop]
|
||||||
|
|
Loading…
Reference in a new issue