Possible jail.local config for wp fail2ban
-
In working on our webserver we noticed that WP Fail2Ban was not adding blocked IP’s to the IPTables and then, once we fixed that bit, IPTables was not blocking the IP address anyway.
Our original config was:
[wordpress] enabled = true filter = wordpress action = iptables-multiport logpath = /var/log/messages port = http,https maxretry = 3
After a bit of testing (and some lost hair), we found the following configuration in our jail.local file worked:
[wordpress] enabled = true filter = wordpress action = iptables-multiport[name=wordpress, port="http,https"] logpath = /var/log/messages maxretry = 3
Fail2Ban Version = 0.8.10
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Possible jail.local config for wp fail2ban’ is closed to new replies.