diff --git a/README.md b/README.md index 3a2091d..c6e1495 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,14 @@ sudo apt install fail2ban -y ``` - Créer `/etc/fail2ban/filter.d/realmd.conf`: +```conf +[Definition] +failregex = \[AuthChallenge\] Account '.*' using IP '' tried to login with wrong password! +ignoreregex = +``` + +- Créer `/etc/fail2ban/jail.local`: + ```conf [realmd] enabled = true @@ -80,12 +88,13 @@ protocol = tcp logpath = /home/wow/vmangos/logs/realmd/realmd.log maxretry = 5 findtime = 600 -bantime = 3600 +bantime = 36000 ``` - Redémarrer fail2ban: ```bash sudo systemctl restart fail2ban +sudo fail2ban-client reload ``` ## SE CONNECTER AU SERVEUR