![]() |
fail2ban apache filters
Hello, I'm currently using debian lenny x86_64 with apache/2.2.9, PHP 5.2.6-1+lenny8, mysql server 5.0.51a-24+lenny4
I've installed the latest version via apt-get install fail2ban and it's running properly. The issue I am having is with the default apache-auth filters, which are: Code:
failregex = [[]client <HOST>[]] user .* authentication failure1. The failed login isn't recorded to the error log, instead it's recorded to the access log. 2. The format doesn't match the above, here's and example of the difference: Code:
xxx.xxx.xxx.xxx - USERNAME [08/Jun/2010:02:42:17 -0500] "GET / HTTP/1.1" 401 433 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"So, I need to pull the following info from the record (red bold portions): Code:
xxx.xxx.xxx.xxx - USERNAME [08/Jun/2010:02:42:17 -0500] "GET / HTTP/1.1" 401 433 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3" |
This might help you: http://www.fail2ban.org/wiki/index.php/Talk:Apache
|
| All times are GMT +2. The time now is 00:49. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.