Outils pour utilisateurs

Outils du site


securewordpress:securiser_wordpress

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

securewordpress:securiser_wordpress [2018/09/10 12:23] – créée ronansecurewordpress:securiser_wordpress [2019/01/11 15:49] (Version actuelle) rguyader
Ligne 3: Ligne 3:
 Fail2ban pour wordpress (protéger l'authentification) Fail2ban pour wordpress (protéger l'authentification)
  
-  # apt-get install fail2ban +<code bash> 
-  # cat << 'EOF' > /etc/fail2ban/filter.d/apache-wp.conf+apt-get install fail2ban 
 +cat << 'EOF' > /etc/fail2ban/filter.d/apache-wp.conf 
 +  
   [Definition]   [Definition]
   failregex = .*:(80|443) <HOST> .*(GET|POST) .*wp-login.php.* 200 .*   failregex = .*:(80|443) <HOST> .*(GET|POST) .*wp-login.php.* 200 .*
   ignoreregex =   ignoreregex =
   EOF   EOF
 +</code>
  
-  # cat << 'EOF' >> /etc/fail2ban/jail.conf +<code bash> 
 +cat << 'EOF' >> /etc/fail2ban/jail.conf  
 +  
   [apache-wp]   [apache-wp]
      
Ligne 21: Ligne 26:
   bantime = 3600   bantime = 3600
   EOF   EOF
 +</code>
  
 Verifier : Verifier :
  
-  # fail2ban-regex /var/log/apache2/other_vhosts_access.log /etc/fail2ban/filter.d/apache-wp.conf+<code bash> 
 +fail2ban-regex /var/log/apache2/other_vhosts_access.log /etc/fail2ban/filter.d/apache-wp.conf 
 +</code>
  
 Lancer et contrôler : Lancer et contrôler :
  
-  # service fail2ban stop +<code bash> 
-  # service fail2ban start +service fail2ban stop 
-  # fail2ban-client status +service fail2ban start 
-  # watch fail2ban-client status apache-wp+fail2ban-client status 
 +watch fail2ban-client status apache-wp 
 +</code>
  
 Pour débannir : relancer fail2ban (toujours valable ?) ou  Pour débannir : relancer fail2ban (toujours valable ?) ou 
  
-  # fail2ban-client unban <ip>+<code bash> 
 +fail2ban-client unban <ip
 +</code>
securewordpress/securiser_wordpress.1536582222.txt.gz · Dernière modification : 2018/09/10 12:23 de ronan