Use the below steps to setup and configure Comodo Web Application Firewall
1)Login the Admin Console on below URL using the login credentials to get the latest installer .Create a new account there if you don’t have it. Access the below URL using the newly created credentials.
https://waf.comodo.com
Copy the link address ‘Download latest installer’ link at the top right of the page.
Download the file to the server and install it
cd /usr/src
wget https://waf.comodo.com/cpanel/cwaf_client_install.sh
sh cwaf_client_install.sh
4) An installation screen will be displayed and you should select “OK” for the remaining steps.
ENTER CWAF LOGIN :
password :
Give the already create login credentials on the above step
Now, Login to the server WHM, navigate to COMODO WAF option
Click yes for the popup “Do you want to download latest COMODO Rules and run Protection Wizard?” to download the latest rules.
Thats All.
A new include file will be now added in /usr/local/apache/conf/modsec2.conf
root@server [/usr/src]# grep cwaf.conf /usr/local/apache/conf/modsec2.conf
Include “/var/cpanel/cwaf/etc/cwaf.conf”
Below Rules are included in /var/cpanel/cwaf/etc/cwaf.conf
Include /var/cpanel/cwaf/etc/httpd/domains/*.conf
Include /var/cpanel/cwaf/rules/*.conf
Include /var/cpanel/cwaf/etc/httpd/global/*.conf
Include /var/cpanel/cwaf/etc/httpd/custom_user.conf
You can see the rules in
root@server [/var/cpanel/cwaf/rules]# ls
./ bl_input cwaf_01.conf cwaf_05.conf LICENSE.txt userdata_login_pages@
../ bl_output cwaf_02.conf cwaf_06.conf rules.dat userdata_wl_agents@
bl_agents bl_scanners cwaf_03.conf cwaf_07.conf scheme.yml userdata_wl_domains@
bl_domains categories.conf cwaf_04.conf exclude.yml userdata_bl_agents@ userdata_wl_methods@
=====<>=====