WordPress.org

Ready to get started?Download WordPress

Forums

WP fail2ban
Possible Jail Config (2 posts)

  1. dharward
    Member
    Posted 9 months ago #

    # WordPress Login Ban
    # Using WP Fail2Ban
    [wordpress]
    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.

    http://wordpress.org/plugins/wp-fail2ban/

  2. dharward
    Member
    Posted 9 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.