Posts: 339
Thanks: 35
Thanked 75 Times in 61 Posts
Fail2ban and mysql
Hello,
Why fail2ban don't support mysql? I have found a patch to make it work but I think that mysql logging can be a performance killer. I have test to logging and in minutes I get a very heavy log (logging with "General query log" level ). There is any way to log only connections in mysql?
Fail2ban does not work well with mysql.log because MySQL does not log the client IP address of the failed login attempt.
The part after the '@' in the "Access denied for user 'name'@'host.doma.in'" message is the result of a reverse DNS lookup on the client IP address, which may or may not resolve back to the original IP address. If it doesn't, fail2ban will fail, or worse, ban the wrong address.
Recent comments
2 days 6 hours ago
2 days 15 hours ago
2 days 18 hours ago
2 days 19 hours ago
2 days 21 hours ago
2 days 22 hours ago
3 days 21 min ago
3 days 1 hour ago
3 days 17 hours ago
3 days 18 hours ago