nbenedek 663cd4ac22
wordpress: Add fail2ban filter and jail
- I tested the changes with the VirtualBox image with a bridged network adapter.
After ten failed authentication attempts, my IP got blocked as expected.

- This setup uses apache's logs to filter the attempts. A wordpress
[plugin](https://wordpress.org/plugins/wp-fail2ban/) exists for redirecting the
logs to syslog, but that needs to be packaged.

Signed-off-by: nbenedek <contact@nbenedek.me>
[sunil: Drop logpath as logs are expected to go to journald]
[sunil: Update regex to match only failures and not successful logins]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-09-23 14:18:54 -07:00
..
2022-08-15 10:36:29 -04:00
2022-08-16 10:47:26 -07:00
2022-08-15 10:36:29 -04:00
2022-08-15 10:36:29 -04:00
2022-08-15 10:36:29 -04:00
2022-08-15 10:36:29 -04:00
2022-08-15 10:36:29 -04:00
2022-08-15 10:36:29 -04:00
2022-09-23 08:01:57 -04:00
2022-08-29 21:06:54 -04:00
2022-08-15 10:36:29 -04:00
2022-08-29 08:29:03 -04:00
2022-08-15 10:36:29 -04:00
2022-08-29 08:29:07 -04:00
2022-08-15 10:36:29 -04:00
2022-08-15 10:36:29 -04:00
2022-08-15 10:36:29 -04:00
2022-08-15 10:36:29 -04:00
2022-08-23 18:12:51 +05:30
2015-05-03 19:27:12 +02:00