View Single Post
  #4  
Old 12th February 2013, 11:21
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 211
Thanks: 8
Thanked 57 Times in 49 Posts
Default

To test your configs, check your apache-badbots.conf and find the failregex.

Mine looks like
Code:
failregex = ^<HOST> -.*"(GET|POST).*HTTP.*"(?:%(badbots)s|%(badbotscustom)s)"$
Chose one entry from "badbots" and run fail2ban-regex with a test-string against your apache-badbots.conf:
Code:
fail2ban-regex '1.2.3.4 - - [12/Feb/2013:10:53:59 +0100] "GET / HTTP/1.1 200" 39460 "-" "autoemailspider"' /etc/fail2ban/filter.d/apache-badbots.conf
You should get something like "Success, the total number of match is 1"
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote