We've been using fail2ban
to block failed ssh
attempts. I would like to setup the same thing for phpMyAdmin as well.
As phpMyAdmin
doesn't log authentication attempts to a file (that I know of), I'm unsure of how best to go about this.
Does a plugin / config exist that makes phpMyAdmin
log authentication attempts to a file? Or is there some other place I should look for such an activity log?
Ideally I will be able to find a solution that involved modifying fail2ban
config only, as I have to configure fail2ban
with the same options on multiple servers, and would prefer not to also modify the various phpMyAdmin
installations on said servers.