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.

Install third party ruleset without yaml

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

  1. glenn0

    glenn0 Active Member

    Joined:
    Jul 23, 2012
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    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:
    942
    Likes Received:
    57
    Trophy Points:
    28
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  4. glenn0

    glenn0 Active Member

    Joined:
    Jul 23, 2012
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    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:
    942
    Likes Received:
    57
    Trophy Points:
    28
    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