Skip to content

Instantly share code, notes, and snippets.

@alexalouit
Created June 5, 2017 20:48
Show Gist options
  • Save alexalouit/4f01da055cc2fe6a3b7d0864b556e806 to your computer and use it in GitHub Desktop.
Save alexalouit/4f01da055cc2fe6a3b7d0864b556e806 to your computer and use it in GitHub Desktop.
Fail2ban phpmyadmin (< 4.7)
[phpmyadmin]
enabled = true
port = 443
filter = phpmyadmin
logpath = /var/log/auth.log
bantime = 3600
findtime = 60
maxretry = 7
# 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