securewordpress:securiser_wordpress
Différences
Ci-dessous, les différences entre deux révisions de la page.
| securewordpress:securiser_wordpress [2018/09/10 12:23] – créée ronan | securewordpress:securiser_wordpress [2019/01/11 15:49] (Version actuelle) – rguyader | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| Fail2ban pour wordpress (protéger l' | Fail2ban pour wordpress (protéger l' | ||
| - | # apt-get install fail2ban | + | <code bash> |
| - | # | + | apt-get install fail2ban |
| + | cat << ' | ||
| + | | ||
| [Definition] | [Definition] | ||
| failregex = .*:(80|443) < | failregex = .*:(80|443) < | ||
| ignoreregex = | ignoreregex = | ||
| EOF | EOF | ||
| + | </ | ||
| - | # cat << ' | + | <code bash> |
| + | cat << ' | ||
| + | | ||
| [apache-wp] | [apache-wp] | ||
| | | ||
| Ligne 21: | Ligne 26: | ||
| bantime = 3600 | bantime = 3600 | ||
| EOF | EOF | ||
| + | </ | ||
| Verifier : | Verifier : | ||
| - | # fail2ban-regex / | + | <code bash> |
| + | fail2ban-regex / | ||
| + | </ | ||
| Lancer et contrôler : | Lancer et contrôler : | ||
| - | # service fail2ban stop | + | <code bash> |
| - | # | + | service fail2ban stop |
| - | # | + | service fail2ban start |
| - | # | + | fail2ban-client status |
| + | watch fail2ban-client status apache-wp | ||
| + | </ | ||
| 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