I'm having trouble getting fail2ban to detect failed apache-auth attempts.
Filters look like this:
^%(_apache_error_client)s (AH01617: )?user .* authentication failure for "\S*": Password Mismatch$ ^%(_apache_error_client)s (AH01618: )?user .* not found(: )?\S*\s*$
and errors that occur:
[Tue Dec 23 13:41:45.870693 2014] [auth_basic:error] [pid 2818] [client 97.171.82.123:91131] AH01617: user miati: authentication failure for "/test/file.html": Password Mismatch, referer: https://example.org/test/file.html [Tue Dec 23 13:41:45.870693 2014] [auth_basic:error] [pid 2818] [client 97.171.82.123:91131] AH01617: user miati: authentication failure for "/test/file.html": Password Mismatch, referer: https://example.org/test/file.html
Do not work correctly. I would like them to be rewritten so that they work, but I canβt understand how the filter works, and a search on Google does not lead me anywhere. Most manuals assume that I understand regex that I donβt have.
Can someone explain (or relate) what these options mean in the filter so that I can change it myself?
Miati source share