mod回避在ubuntu 10.04上不能正常工作

我有一个Ubuntu 10.04服务器,我安装了mod_evasive使用apt-get install libapache2-mod-evasive evasive

我已经尝试了几种configuration,结果保持不变。

阻塞确实有效,但是是随机的。

我尝试了低限度和长时间阻塞以及短暂的限制。

我期望的行为是,我可以请求的网站,直到任何页面或站点限制达到每个给定的时间间隔。 之后,我希望被阻止,直到我没有提出另一个要求,只要块的时间。

然而,行为是我可以要求网站,一段时间后,我得到随机403块,增加和decrase在百分比,但他们是非常分散的。

这是围城的输出,所以你有一个想法:

 HTTP/1.1 200 0.09 secs: 75 bytes ==> /robots.txt HTTP/1.1 403 0.08 secs: 242 bytes ==> /robots.txt HTTP/1.1 200 0.08 secs: 75 bytes ==> /robots.txt HTTP/1.1 403 0.08 secs: 242 bytes ==> /robots.txt HTTP/1.1 200 0.11 secs: 75 bytes ==> /robots.txt HTTP/1.1 403 0.08 secs: 242 bytes ==> /robots.txt HTTP/1.1 200 0.08 secs: 75 bytes ==> /robots.txt HTTP/1.1 403 0.09 secs: 242 bytes ==> /robots.txt HTTP/1.1 200 0.08 secs: 75 bytes ==> /robots.txt HTTP/1.1 200 0.09 secs: 75 bytes ==> /robots.txt HTTP/1.1 200 0.08 secs: 75 bytes ==> /robots.txt HTTP/1.1 200 0.09 secs: 75 bytes ==> /robots.txt HTTP/1.1 403 0.08 secs: 242 bytes ==> /robots.txt HTTP/1.1 200 0.08 secs: 75 bytes ==> /robots.txt HTTP/1.1 403 0.08 secs: 242 bytes ==> /robots.txt HTTP/1.1 200 0.10 secs: 75 bytes ==> /robots.txt HTTP/1.1 403 0.08 secs: 242 bytes ==> /robots.txt HTTP/1.1 200 0.08 secs: 75 bytes ==> /robots.txt HTTP/1.1 403 0.09 secs: 242 bytes ==> /robots.txt HTTP/1.1 200 0.10 secs: 75 bytes ==> /robots.txt HTTP/1.1 403 0.09 secs: 242 bytes ==> /robots.txt HTTP/1.1 200 0.09 secs: 75 bytes ==> /robots.txt HTTP/1.1 200 0.08 secs: 75 bytes ==> /robots.txt HTTP/1.1 200 0.09 secs: 75 bytes ==> /robots.txt HTTP/1.1 200 0.08 secs: 75 bytes ==> /robots.txt HTTP/1.1 200 0.10 secs: 75 bytes ==> /robots.txt HTTP/1.1 200 0.08 secs: 75 bytes ==> /robots.txt 

在这次testing中,Exac限制是:

 DOSHashTableSize 3097 DOSPageCount 10 DOSSiteCount 100 DOSPageInterval 10 DOSSiteInterval 10 DOSBlockingPeriod 120 DOSLogDir /var/log/mod_evasive DOSEmailNotify ***@gmail.com DOSWhitelist 127.0.0.1 

所以我希望被封锁一次后至less120秒。

任何想法aobut这?

我也尝试添加我的configuration在不同的地方(虚拟主机,服务器configuration,目录上下文)和没有ifmodule指令…

这并没有改变任何东西。

这个问题可以通过在prefork模式下使用apache引起,mod_evasive的每个计数器在进程之间不共享。

在serverfault上发布