|
|||
|
There's some information here EasyApache mod_security Module
As far as I'm aware 1.x version only work with Apache 1.3.x, and 2.x is used for apache 2.2.x
__________________
SilvesterHost.co.uk |
|
|||
|
Another note from EasyApache when you enable it.
Mod Security [More Info ↑] v1.9.5 for Apache 1.3, v2.5.9 for Apache 2.x This option will make the following changes to your profile prior to the build:
__________________
SilvesterHost.co.uk |
|
||||
|
Quote:
This information is indicated on the cPanel Plugins page in WHM: Code:
Version: 1.9.1-2.6 Description: mod_security Support !!BETA!! (This is deprecated. Use easyapache3 to install mod_security as it is now supported without having to use the addon interface in easyapache3) Here is the menu path to check while making sure the mod_security plug-in is uninstalled/removed as a first step: WHM: Main >> cPanel >> Manage Plugins On the above page, simply click "Uninstall modsecurity" to proceed. Once the uninstall is completed, proceed to run EasyApache3 (EA3), as described below: Here is the command to run EasyApache via root SSH access: Code:
# /scripts/easyapache WHM: Main >> Software >> EasyApache (Apache Update) For additional reference I recommend thoroughly reviewing our EasyApache documentation as noted below: Apache & cPanel/WHM
__________________
We are here to help where needed to ensure a successful resolution. Feel free to submit a ticket for hands-on assistance; our support team will be able to investigate, diagnose and troubleshoot the issue: https://tickets.cpanel.net/submit/ -- cPanel Don, Technical Analyst |
|
|||
|
Does cPanel provide / auto update the default rules that come with mod_security when installed via EasyApache?
I'm using the default rules however would like to use the GotRoot rules and was wondering if it is worth it. Or are the cPanel provided default rules sufficient (and updated)? Unfortunately the GotRoot wiki on how to install the GotRoot rules are bit lacking!
|
|
||||
|
When you compile Apache and select to install modsecurity the suggested ruleset from cPanel is installed. If you look close they are tweaked a bit for cPanel, IIRC. They are not auto updated.
You can add any additional rules you like and use an include in the modsec2.conf In that file right now you should see this line which calls those rules cPanel adds: Include "/usr/local/apache/conf/modsec2.user.conf" If you added a line similar to this just below: Include "/usr/local/apache/conf/myrules/*crs*.conf" And place your rules in that myrules directory with that naming convention (save and restart Apache) they will be used. An example added ruleset name: modsecurity_crs_42_comment_spam.conf This a very generalized comment to explain a bit. You should investigate further before adding your own rules. ModSecurity: Open Source Web Application Firewall - Documentation Some docs there for you as well. Last edited by Infopro; 11-03-2009 at 04:33 AM. |
|
||||
|
Quote:
Code:
/usr/local/apache/conf/modsec2.user.conf WHM: Main >> Plugins >> Mod Security >> Edit Config On the Edit Config page, in addition to a large text area for editing the configuration file contents there are two options available for setting this file to the default rules we offer or resetting it to no configuration (empty): Reset configuration textarea to: (1) Default Configuration (2) No Configuration If one of the above two reset features are used, ensure to save the new contents once completed; there is a "Save Configuration" button at the bottom of the page. As mentioned in Infopro's message, to setup additional configuration files you'd need to setup a subdirectory within the Apache "conf" directory, then setup an Include entry in the mod_security user configuration file (e.g., "modsec2.user.conf") to load the new custom files, such as what may be obtained from sites that compile sets of rules for public distribution. While the mod_security user configuration file can be edited via WHM, if additional files in a sub-directory are needed to be included they would need to be setup manually via root SSH access. For additional clarification, I recommend thoroughly reviewing the following documentation (that was posted earlier in the thread too): EasyApache mod_security Module
__________________
We are here to help where needed to ensure a successful resolution. Feel free to submit a ticket for hands-on assistance; our support team will be able to investigate, diagnose and troubleshoot the issue: https://tickets.cpanel.net/submit/ -- cPanel Don, Technical Analyst |
|
|||
|
Hello All:
We use "Mod Security" for several years now, but have not updated our rules for some time ... that is quite some science!! I would VERY MUCH appreciate if someone could post here his/her ruleset for a server with a **shared** hosting setup (typical ruleset that would work for a typical hosting company server -- not too strict, in other words). Anything that has proven to work out. That would be great. Thanks. John |
|
|||
|
Quote:
Other option is to just include the rules one at a time (say trial it over a week) instead of using all the new rules at once. To do so just follow the steps above. |
|
|||
|
yes, yes, yes ... however, but ... as I mentioned, a ruleset for a typical hosting server for shared hosting, where you have 300+ domains on it. There is no way to "customize" that the way you suggest. What we are looking for is a something other hosts are using, have been using for some time on their shared servers.
Thanks. Last edited by basic; 11-18-2009 at 09:22 AM. |
![]() |
| Tags |
| install , mod security , security |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mod security | black&white | cPanel and WHM Discussions | 1 | 06-19-2008 12:16 PM |
| Mod Security 2.5, or 2.0? | sh4ka | cPanel and WHM Discussions | 0 | 04-21-2008 12:20 PM |
| Simple security question about mod-security rule sets. | jols | cPanel and WHM Discussions | 1 | 08-09-2007 05:37 AM |
| Urgent - Mod Security | s_2_s | cPanel and WHM Discussions | 3 | 11-19-2004 07:03 PM |
| Mod Security but how? | MrNone | cPanel and WHM Discussions | 1 | 11-02-2004 10:15 AM |