filter apache log to enable a fail2ban jail and keep away bad people from your wp-login.php
-
Enable your Apache access log https://httpd.apache.org/docs/current/logs.html
-
Copy the wp-login.conf file at your /etc/fail2ban/filter.d directory
-
Copy the wp-login.local file at your /etc/fail2ban/jail.d directory
-
You must change the "logpath" parameter
-
Restart fail2ban service $ systemctl restart fail2ban