Discussion in 'General' started by hans2512, Mar 19, 2007.

  1. hans2512

    hans2512 New Member

    Does someone have a howto to install Mod_evasive with ipsconfig
    I tried this the normal way but this is not possible

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig should not conflict with mod_evasive. Whats the exact problem you had?
  3. defconjuan

    defconjuan New Member


    I kept getting 403/denied errors after installing mod_evasive on my ubuntu 10.10/ISPConfig 3 setup. Basically, I was getting blocked for 10 seconds (the default blocking period) whenever I clicked too many links too quickly in ISPConfig. After some tweaking, I have a config that still protects it, but doesn't blockout real/normal users.

    Here's the full mod_evasive install and working config (it's google bot safe):

    > apt-get install libapache2-mod-evasive
    > mkdir -p /var/log/apache2/evasive chown -R www-data:root /var/log/apache2/evasive
    > nano /etc/apache2/mods-available/mod-evasive.load
    And add make it look like so:

               LoadModule evasive20_module /usr/lib/apache2/modules/
                <IfModule  mod_evasive20.c>
                   DOSHashTableSize 2048
                   DOSPageCount 10
                   DOSSiteCount 200
                   DOSPageInterval 2
                   DOSSiteInterval 2
                   DOSBlockingPeriod 10
                   DOSCloseSocket On
                   DOSLogDir "/var/log/apache2/evasive"
                   DOSEmailNotify [email protected]
    Then restart apache
    /etc/init.d/apache2 restart
    Last edited: Apr 28, 2011

Share This Page