store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu May 23, 2013 10:59 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 2 posts ] 
Author Message
 Post subject: CPanel ModSec Rules Auto Updater
Unread postPosted: Sun Feb 14, 2010 1:03 pm 
Offline
Forum User
Forum User

Joined: Sat Jan 17, 2009 2:19 pm
Posts: 99
Hi all,
I have already finished the testing time of my ModSec Rules AutoUpdater for CPanel.

You can download the script at www.puntapirata.com, here are a few details about it:

HOW TO USE IT:
1. Download GotRoot rules from www.Got Root.com or from the payed site and save it in your /tmp file.
2. Save the script in its own folder and make the script executable (chmod u+x)
3. At running time the script will ask you for the file version, nothing else, then it will do eveything automatically for you.
So, for example, if the rule file is called modsec-201001121214.tar.gz, you will have to write "201001121214".
The script will test Apache to check everything was fine, if it is, you could restart apache from there or do it later manually.
4. Read any text inside the file for any last minute update or config tips.

The script will save a backup with your actual rules before it does the update, if Apache gives any error, you can manually restore everything on its place.

How the script works:
1. The script checks that the rule file is already saved on the /tmp directory.
2. It unpacks everything in a temporary folder.
3. Modifies some rules to be 100% compatible with CPanel.
4. Saves the actual rules in a directory, just in case needed to do a manual restore.
5. Replaces all the modsec_rule files with the new ones.
6. Checks that Apache runs with the new rules.
7. Deletes all the temporary files used.
8. The script ends.
The use of this script is at your own risk and we don't assume any responsability.

To use the script, you need to download it from my web site www.PuntaPirata.com, if you have any comments, please use this thread.


Hope you save a lot of time as I have done with it.

Regards,
Sergio


Top
 Profile  
 
 Post subject: Re: CPanel ModSec Rules Auto Updater
Unread postPosted: Sun Feb 14, 2010 1:11 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7428
Location: earth
Have you had a chance to try out ASL Lite yet?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 2 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group