Skip to content

Instantly share code, notes, and snippets.

@kevin25
Forked from rutger1140/jail.local
Last active August 29, 2015 14:11
Show Gist options
  • Save kevin25/59dfd7d196bfd45a1318 to your computer and use it in GitHub Desktop.
Save kevin25/59dfd7d196bfd45a1318 to your computer and use it in GitHub Desktop.
# Create a new jail via Plesk
# generated in /etc/fail2ban/jail.local
[wp-auth]
enabled = true
filter = wp-auth
action = iptables-multiport[name=NoAuthFailures, port="http,https"]
logpath = /var/www/vhosts/system/*/logs/*access*log
/var/log/httpd/*access_log
maxretry = 15
# Create a filter via Plesk
# or create your own as root: /etc/fail2ban/filter.d/wp-auth.conf
[Definition]
failregex = <HOST>.*] "POST /wp-login.php
ignoreregex =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment