Mod Evasive install help

http://library.linode.com/web-servers/a … od-evasive">http://library.linode.com/web-servers/apache/mod-evasive

http://www.linuxlog.org/?p=135

hi! im trying to install mod_evasive on a ubuntu 10.04 LTS via both guides above but cannot seem to get apxs to run. So i manually added it into my apache2.conf file:

LoadModule evasive20_module /usr/lib/apache2/modules/mod_evasive20.so
 <ifmodule mod_evasive20.c="">DOSHashTableSize    3097
  DOSPageCount        2
  DOSSiteCount        50
  DOSPageInterval     1
  DOSSiteInterval     1
  DOSBlockingPeriod   10</ifmodule> 

But doesn't appear to work when i run the test, everything goes through which means it's not working.

root@neomalle:~# perl test.pl

HTTP/1.1 200 OK

HTTP/1.1 200 OK

x 100

Am i missing something? thanks

P.S. When i run sudo a2enmod mod-evasive, i get:

Module mod-evasive already enabled

2 Replies

I remember having trouble with apxs installation. On 10.04 it was in the package apache-dev, and was named apxs2.

James

Well i definitely managed to get it installed that way! But unfortunately, it doesnt seem to be working. restarted apache2 and the test.pl file keeps saying "HTTP 200 ok" Coming from shared hosting, i know im a bit of a linux noob so im trying to figure things out so far! No idea what to do next lol. Someone keeps hitting my site's login form with hexadecimals and encoded text, etc etc (which increases CPU usage to 110%) so figured mod_evasive might come in handy

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct