The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

A total Anti-DOS solution

Discussion in 'General Discussion' started by Remi, Aug 26, 2003.

  1. Remi

    Remi Registered

    Joined:
    Aug 17, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
  2. justchil

    justchil Active Member

    Joined:
    Aug 1, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    you're joking ... right?

    cPanel.net Support Ticket Number:
     
  3. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    HOW TO INSTALL

    APACHE v1.3
    -----------

    1. Extract this archive into src/modules in the Apache source tree

    2. Run ./configure --add-module=src/modules/dosevasive/mod_dosevasive.c

    3. make, install

    4. Restart your server


    If you are using the Ensim control panel, or some other wrapper that makes it
    difficult to do the above, you can compile and install the module simply
    by doing:

    apxs -iac mod_dosevasive.c

    And restarting Apache

    APACHE v2.0
    -----------

    1. Extract this archive

    2. Run $APACHE_ROOT/bin/apxs -i -a -c mod_dosevasive20.c

    3. The module will be built and installed into $APACHE_ROOT/modules, and loaded into your httpd.conf

    4. Restart your server

    CONFIGURATION

    mod_dosevasive has default options configured, but you may also add the
    following block to your httpd.conf:

    APACHE v1.3
    -----------

    <IfModule mod_dosevasive.c>
    DOSHashTableSize 3097
    DOSPageCount 2
    DOSSiteCount 50
    DOSPageInterval 1
    DOSSiteInterval 1
    DOSBlockingPeriod 10
    </IfModule>

    APACHE v2.0
    -----------
    <IfModule mod_dosevasive20.c>
    DOSHashTableSize 3097
    DOSPageCount 2
    DOSSiteCount 50
    DOSPageInterval 1
    DOSSiteInterval 1
    DOSBlockingPeriod 10
    </IfModule>

    Optionally you can also add the following directives:

    DOSEmailNotify you@yourdomain.com
    DOSSystemCommand "su - someuser -c '/sbin/... %s ...'"

    You will also need to add this line if you are building with dynamic support:

    APACHE v1.3
    -----------

    AddModule mod_dosevasive.c

    APACHE v2.0
    -----------

    LoadModule dosevasive20_module modules/mod_dosevasive20.so

    (This line is already added to your configuration by apxs)

    cPanel.net Support Ticket Number:
     
  4. Water

    Water Active Member

    Joined:
    Jun 17, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Would someone give me a review about this. Does it work? Does it hurt anything else running on your server? Does it cause any problems? Is it safe and all that good stuff. Thanks.

    cPanel.net Support Ticket Number:
     
  5. jcsolutions

    jcsolutions Well-Known Member

    Joined:
    Nov 4, 2002
    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    So what's the problem? Please enlighten everyone if you know something about this program.

    cPanel.net Support Ticket Number:
     
  6. Remi

    Remi Registered

    Joined:
    Aug 17, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    B12Org

    Thank you very very much, I realy can't describe how thanful and happy I am.

    Thank you from the buttom of my heart I really mean it :D

    one last thing please, Do I have to reinstall this module each time I use "easyapache" or updating the Apache does not break the installatin.

    Thanks :)

    cPanel.net Support Ticket Number:
     
  7. musashi

    musashi Registered

    Joined:
    Jun 28, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I am getting

    apxs: command not found


    :confused:

    cPanel.net Support Ticket Number:
     
  8. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    Yes, you will probably have to reinstall if you compile apache again, as it is an addon mod.

    cPanel.net Support Ticket Number:
     
  9. netlook

    netlook Well-Known Member
    PartnerNOC

    Joined:
    Mar 25, 2004
    Messages:
    335
    Likes Received:
    0
    Trophy Points:
    16
    Is it worth to install mod_dosevasive ?? How to configure it best?
     
  10. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    Its worth it if you are worried about dos attacks. If you are not worried about it, then its probably not worth it.
     
  11. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    True, no total solution, but every bit helps
     
Loading...

Share This Page