OWASP's Dos detection not kicking in
Hello,
I'm trying to setp the mod_security on my httpd web server. I have followed the basic steps
yum install mod_security
-1: I put the modsecurity_crs_10_setup.conf in the /etc/httpd/modsecurity.d
-2: I put the owasp dos rule in the /etc/httpd/modsecurity.d/activated-rules
-3: I have checked that /etc/httpd/conf.d/mod_security.conf includes these 2 .conf
-4: I have checked that /etc/httpd/httpd.conf includes the /etc/httpd/conf.d folder..
When I start http and check in the /var/log/httpd i can see that modsecurity_auditlog is created and that it logs all the error (5x and 4x)
"--b7148938-H--
Apache-Handler: proxy-server
Stopwatch: 1419172908440055 2294 (- - -)
Stopwatch2: 1419172908440055 2294; combined=242, p1=98, p2=8, p3=0, p4=1, p5=84, sr=32, sw=51, l=0, gc=0
Response-Body-Transformed: Dechunked
Producer: ModSecurity for Apache/2.8.0 (http://www.modsecurity.org/); **OWASP_CRS/2.2.9.**
Server: Apache/2.2.29 (xxx)
Engine-Mode: "ENABLED"
I have then started Low Orbit Ion Cannon and spamed my index page for 5 minutes. and.... nothing.. I have no mention whatsoever that the server was under dos attack (i check in the modsecurity audit log and http error log..)
To test a little i have modified the variable in the .conf from owasp (i have a very low threshold and a smaller burst time slice)
#SecAction \
"id:'900015', \
phase:1, \
t:none, \
setvar:'**tx.dos_burst_time_slice=10'**, \
setvar:'**tx.dos_counter_threshold=5**', \
setvar:'tx.dos_block_timeout=600', \
nolog, \
pass"
But still nothing... my IP was still not blocked....
Am I missing something ?
Thank you!
Please open a ticket for this under the OWASP CRS - https://github.com/SpiderLabs/owasp-modsecurity-crs/issues