Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Install third party ruleset without yaml

Discussion in 'Security' started by glenn0, Oct 3, 2015.

  1. glenn0

    glenn0 Well-Known Member

    Joined:
    Jul 23, 2012
    Messages:
    53
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Website Owner
    Hi,

    I would like to install modsecurity ruleset here: https://github.com/Flameeyes/modsec-flameeyes via WHM.

    I am not currently using OWASP (or any other ruleset).

    Can somebody please tell me how best to proceed as there is no yaml file etc.

    Thank you for any guidance,

    Regards.
     
  2. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    1,010
    Likes Received:
    87
    Trophy Points:
    78
    cPanel Access Level:
    DataCenter Provider
    The file modsec2.user.conf is intended for the purpose of adding or configuring your own rules. Assuming your hosting provider has not managed this file for you, Simply place all the rules files (such as flameeyes_00_settings.conf and so on) in a folder like /usr/local/apache/conf/modsec_rules/ (you'll need to make the directory)

    then in /usr/local/apache/conf/modsec2.user.conf add the include lines for the rules you want to use;

    Include "/usr/local/apache/conf/modsec_rules/flameeyes_00_settings.conf"
    Include "/usr/local/apache/conf/modsec_rules/flameeyes_05_proxy.conf"

    and so on.
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Yes, as mentioned, you will need to manually update /usr/local/apache/conf/modsec2.user.conf per the instructions in the last response. You won't be able to implement this ruleset solely in Web Host Manager.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. glenn0

    glenn0 Well-Known Member

    Joined:
    Jul 23, 2012
    Messages:
    53
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Website Owner
    Thank you very much quizknows for taking the time, it's appreciated (and cPanelMichael for confirming).

    Regarding the data files (eg flameeyes_bad_browsers.data), where should they go?

    Thanks.
     
  5. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    1,010
    Likes Received:
    87
    Trophy Points:
    78
    cPanel Access Level:
    DataCenter Provider
    the .data files should just need to be in the same directory as the rules files.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice