Atomic modsecurity rules update question

inthukha

Well-Known Member
Jul 17, 2013
61
0
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.
 

63bus

Active Member
Mar 31, 2007
35
0
156
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.