Skip to content

mysql-auth doesn't ban to attacker #3225

Answered by sebres
jaimerletona asked this question in Q&A
Discussion options

You must be logged in to vote

What do you see in fail2ban.log for mysqld-auth?

backend = %(mysql_backend)s

this is set by your fail2ban distribution and could be wrong if it is set to systemd (since you need to monitor log-file and not a journal).
What shows fail2ban-client -d | grep "'add'.*mysqld-auth" for you?
If it is ['add', 'mysqld-auth', 'systemd'] then it is not correct.
Set backend = auto there (it would use file-related backends instead).

How can I trace or test if fail2ban is triggering the process when the log apply to the filter?

In fail2ban.log you'd see [mysqld-auth] Found 192.0.2.1 for every finding of IP 192.0.2.1 and [mysqld-auth] Ban 192.0.2.1 for a ban.
See https://github.com/fail2ban/fail2ban/…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jaimerletona
Comment options

Answer selected by sebres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants