Created
February 7, 2016 17:54
-
-
Save t0mm13b/bc835adf13a9a45df6d8 to your computer and use it in GitHub Desktop.
fail2ban
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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