Created
June 5, 2017 20:48
-
-
Save alexalouit/4f01da055cc2fe6a3b7d0864b556e806 to your computer and use it in GitHub Desktop.
Fail2ban phpmyadmin (< 4.7)
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
[phpmyadmin] | |
enabled = true | |
port = 443 | |
filter = phpmyadmin | |
logpath = /var/log/auth.log | |
bantime = 3600 | |
findtime = 60 | |
maxretry = 7 |
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
# Fail2Ban filter for phpmyadmin < 4.7 | |
[Definition] | |
failregex = user denied: .* \((?:mysql-denied|allow-denied|root-denied|empty-denied)\) from <HOST> | |
ignoreregex = |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment