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.

Atomic modsecurity rules update question

Discussion in 'Security' started by inthukha, Aug 27, 2013.

  1. inthukha

    inthukha Well-Known Member

    Joined:
    Jul 17, 2013
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    I want to know about atomic modsecurity update rule process.

    i setup the atomic modsecurity rules in july end. and downloaded the latest version that time was available but i didn't remember what rules version was that. but i believe it was "Jan 10 2013" rules for 2.5 modsecurity version.

    now i have modsecurity 2.7.4 that is still using the "Jan 10 2013" rules. i seen at atomic free rule website and there are available new rules that release on 16 august 2013 at: http://updates.atomicorp.com/channels/rules/delayed/modsec-2.7-free-latest.tar.gz

    question is, how can i implement this ? just download this and extract in the same way that i do in installation ? and overwrite all existing rules with this ?

    please advise.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,463
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, if the file names are the same, moving the old out of the way and the new in, should work fine. Restart Apache afterward.
     
  3. 63bus

    63bus Active Member

    Joined:
    Mar 31, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Here is my update script that I use:
    SSH to server, login, su to root

    Run commands:
    cd /usr/local/apache/conf/modsec_rules
    wget http://updates.atomicorp.com/channels/rules/delayed/modsec-2.7-free-latest.tar.gz
    tar -zxf modsec-2.7-free-latest.tar.gz
    rm -f modsec-2.7-free-latest.tar.gz
    cd modsec
    mv -f * /usr/local/apache/conf/modsec_rules
    cd ..
    ls -la

    Finally:
    Restart apache through WHM

    Obviously the above can be simplified but it works for me.
     
  4. inthukha

    inthukha Well-Known Member

    Joined:
    Jul 17, 2013
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Thanks, i was just done the uploading the files and replacing with existing one.
     
Loading...

Share This Page