rsk wrote:
Maybe CAREFULLY edit phpmyadmin's code to issue an error_log('PMA: Login refused!') call where appropriate, and tell fail2ban to look for that string in your webserver's error log*?
* You DO have display_errors = Off and log_errors = On in php.ini, right?
All is ok, phpmyadmin launch access denied on wrong user/pass but I need to configure fail2ban to ban that IPs.
phpmyadmin puts this string on ssl_access_log
when someone enter a wrong combination of user/pass
IP_ADDRESS - invalidusername [19/Jul/2010:18:28:55 +0200] "GET /phpmyadmin/ HTTP/1.1" 401 885
but actually I haven't found a regexp for fail2ban that catch this string and ban the IP.
can't understand why this regexp doesn't work:
/<HOST> -.*"GET \/phpmyadmin\/ HTTP\/1\.1" 401 885/