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.

Want to install DOS defense features

Discussion in 'General Discussion' started by tank, May 11, 2011.

  1. tank

    tank Well-Known Member

    Joined:
    Apr 12, 2011
    Messages:
    236
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chicago, IL
    cPanel Access Level:
    Root Administrator
    So i was digging around in some old threads
    http://forums.cpanel.net/f185/ddos-protection-plugin-paying-up-100-a-171558.html

    I liked what they had to say but I keep running into the fact that the command

    Code:
    up2date -i httpd-devel
    keeps coming up as unrecognized. I seen dozens of pages on how to install the up2date feature, but am not sure on how to proceed.

    I am running the latest stable version of Cpanel/WHM and I am using CentOS 5.6. Oh BTW i am trying to install mod_evasive.

    Thanks for the help.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,689
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    CentOS 5.6 uses YUM as the standard package manager, thus if you were installing a package you would use a command such as:

    Code:
    yum install package-name
    That being said, I do not recommend installing the "httpd-devel" or "httpd" package because Apache is handled through EasyApache on cPanel. I found the following guide for installing Mod_Evasive which may be useful to you:

    Installing Mod_Evasive

    Thank you.
     
  3. tank

    tank Well-Known Member

    Joined:
    Apr 12, 2011
    Messages:
    236
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chicago, IL
    cPanel Access Level:
    Root Administrator
    Thanks for the excellent link. Here is another question Michael, I use csf firewall to your knowledge does the work well with Mod_evasive or is APF firewall better?

    Thanks for the help.
     
    #3 tank, May 12, 2011
    Last edited: May 12, 2011
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,689
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Mod_Evasive is based on Apache connections, and has no correlation to IPTables. The use of either APF or CSF should not have any impact on Mod_Evasive itself.

    Thank you.
     
  5. Ivan@rh

    Ivan@rh Member

    Joined:
    Apr 23, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    @cPanelMichael
    Are you able to clarify the instructions in the site you provided:
    cPanel users can edit /usr/local/apache/conf/includes/post_virtualhost_2.conf or use the Apache Configuration option in WHM.

    And then it gives apache conf file directives

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

    Does this mean to simply put the <IfModule ....></.....> into the /usr/local/apache/conf/includes/post_virtualhost_2.conf file and restart apache?

    Are you able to clarify the steps?
     
Loading...

Share This Page