Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:waf:standalone [2019/01/24 15:54]
Jackson Zhang [Download and Extract Rules]
litespeed_wiki:waf:standalone [2019/01/24 21:16] (current)
Lisa Clarke [Add WAF Rule Set] Proofreading
Line 37: Line 37:
 </​code>​ </​code>​
  
-This will download Comodo Litespeed rules, and move ''​rules.conf.main''​ to ''​rules.conf''​. This is the file we will reference in the WebAdmin console.+This will download Comodo Litespeed rules, and move ''​rules.conf.main''​ to ''​rules.conf''​. This is the master ​file including all rules. You can reference in the WebAdmin console ​for this master file.
  
-Rules.conf.main file is like the following and it is a master file to include all rules. ​If some commercial rules set or your own rules set does not have such a master file, you can either ​include rule with absolute path one by one by yourself or make a master file to include all rules with full path.+=====Add WAF Rule Set===== 
 + 
 +Navigate to **Configuration > Server > Security > WAF Rule Set** 
 + 
 +{{ :​litespeed_wiki:​waf:​waf-ruleset.png?600 |}} 
 + 
 +Click **Add** to edit the **WAF Rule Set**. 
 + 
 +{{ :​litespeed_wiki:​waf:​waf-settings.png?​600 |}} 
 + 
 +  * **Name**: ''​Comodo Litespeed''​ 
 +  * **Action**: ''​None''​ 
 +  * **Enabled**:​ ''​Yes''​ 
 +  * **Rules Definition**:​ ''​Include $SERVER_ROOT/​conf/​comodo_litespeed/​rules.conf''​ 
 + 
 +Click **Save** ​to activate the rules. 
 + 
 +You can include ​as many rule files as you like in the **Rules Definition** area. 
 + 
 +The Comodo ''​Rules.conf.main''​ file is Comodo ​master file to include all rules in orderIt the same as manually entering the following:
  
   Include 00_Init_Initialization.conf   Include 00_Init_Initialization.conf
Line 73: Line 92:
   Include 30_Apps_OtherApps.conf   Include 30_Apps_OtherApps.conf
  
 +If using some commercial rules set (like the Atomic rule set) or your own rules set, which does not have such a master file, you have two options:
 +  * Include rules with absolute path one by one in the **Rules Definition** field.
 +  * Make a master file to include all rules with full path, then include only that master file in the **Rules Definition** field. ​
  
- +If including multi-rul files for mod_security, ​the files must be included in the right order to make them work properly
-=====Add WAF Rule Set===== +
- +
-Navigate to **Configuration > Server > Security > WAF Rule Set** +
- +
-{{ :​litespeed_wiki:​waf:​waf-ruleset.png?​600 |}} +
- +
-Click **Add** to edit the **WAF Rule Set** +
- +
-{{ :​litespeed_wiki:​waf:​waf-settings.png?​600 |}} +
- +
-  * **Name**: ''​Comodo Litespeed''​ +
-  * **Action**: ''​None''​ +
-  * **Enabled**:​ ''​Yes''​ +
-  * **Rules Defination**:​ ''​Include $SERVER_ROOT/​conf/​comodo_litespeed/​rules.conf''​ +
- +
-Click **Save** ​to activate the rules.+
  
 =====Enable Firewall===== =====Enable Firewall=====
  • Admin
  • Last modified: 2019/01/24 15:54
  • by Jackson Zhang