WP fail2ban
Possible Jail Config (2 posts)

  1. dharward
    Posted 2 years ago #

    # WordPress Login Ban
    # Using WP Fail2Ban
    enabled = true
    filter = wordpress
    action =iptables-multiport[name=wordpress, port="http,https"]
    sendmail-whois[name=WordpressFail, dest=email@domain.com, sender=fail2ban@domain.com]
    logpath = /var/log/auth.log
    maxretry = 5
    bantime = -1
    findtime = 86400

    This is setup to give the ability to scan the log files and anyone that fails the WordPress login more than 5 times in a 24 hour period to have their IP address banned indefinitely.


  2. dharward
    Posted 2 years ago #

    Sorry I had my logpath setup wrong. So this will work if you have the correct logpath set to
    logpath = /var/log/messages

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP fail2ban
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.