-
-
Notifications
You must be signed in to change notification settings - Fork 427
Description
I would like to have fail2ban monitor login failures and block clients after a threshold.
Currently I find only successful logins are logged, not failed logins, so the first part of the rfe is to log all login failures. (Note if you have Account Locking enabled, then login failures for valid accounts are logged - not helpful for catching most brute force attempts.) If setting debug level logging you do see the username of invalid login attempts as well, but this doesn't work for fail2ban, as it does not log the actual failure, the debug level log is the attempt whether successful or not. (And it seems login failures should always be logged, not as a 'debugging' level message.)
The other part needed is to include the ip address of the client in the log message, so fail2ban can match and block the client.