Skip to content

Instantly share code, notes, and snippets.

@t0mm13b
Created February 7, 2016 17:54
Show Gist options
  • Save t0mm13b/bc835adf13a9a45df6d8 to your computer and use it in GitHub Desktop.
Save t0mm13b/bc835adf13a9a45df6d8 to your computer and use it in GitHub Desktop.
fail2ban
// Put this into /etc/fail2ban/filter.d/apache2-xmlrpc.conf
[Definition]
failregex = ^<HOST> .*POST .*xmlrpc\.php.*
ignoreregex =
// Put this in at end of /etc/fail2ban/jail.conf
[apache-xmlrpc]
enabled = true
port = http,https
filter = apache-xmlrpc
logpath = /var/log/apache2/access.log
maxretry = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment