comodo.sh 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # cd /usr/local/src
  2. # wget https://waf.comodo.com/cpanel/cwaf_client_install.sh
  3. # chmod 755 cwaf_client_install.sh
  4. #./cwaf_client_install.sh
  5. Choose type of installation:
  6. 1) Cpanel installation
  7. 2) Standalone scripts
  8. Choose [1|2]: 1
  9. Step 2
  10. Enter the login credentials for CWAF
  11. Enter CWAF connection data
  12. ————————–
  13. Enter CWAF user: gopkris2000
  14. Enter CWAF password: password
  15. Step 3
  16. Modify Apache Web Server configuration to enable ‘mod_security‘ module and include CWAF Rules, by adding the key ‘Include /var/cpanel/cwaf/etc/cwaf.conf‘ to /usr/local/apache/conf/modsec2.conf
  17. Add this string to Apache HTTPD Mod_security config in your system:
  18. Include “/var/cpanel/cwaf/etc/cwaf.conf”
  19. and reload Apache
  20. Installation complete!
  21. Restart Apache server
  22. #service httpd restart
  23. The agent is installed on the server with a cPanel plugin for CWAF.
  24. Using the Agent to download and deploy firewall rule sets
  25. • Run the CWAF console tool:
  26. /var/cpanel/cwaf/scripts/updater.pl
  27. cPanel Plug-in for Firewall Configuration
  28. CWAF CPanel plug-in allows the administrator to view and modify the web application firewall configuration, update the rule sets, configure rules to be excluded from the currently loaded rule set and to submit feedback to Comodo on the currently loaded rule set version.
  29. To access the CWAF cPanel plugin
  30. Login to cPanel on your server
  31. Click ‘Plugins’ > “Comodo WAF Control“.
  32. Uninstalling the CFMSR Agent
  33. The CWAF is installed at the path /var/cpanel/cwaf by defualt.
  34. To uninstall CWAF Agent,
  35. Run the script ‘bash /var/cpanel/cwaf/scripts/uninstall_cwaf.sh‘
  36. Do you want to remove Comodo WAF application?
  37. Enter answer [y/n] y
  38. Please don’t forget to remove string “Include /var/cpanel/cwaf/etc/cwaf.conf” from file /usr/local/apache/conf/modsec2.conf
  39. and reload Apache
  40. #service httpd restart
  41. Comodo WAF uninstalled!
  42. The agent will be removed from the server.