• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Comodo ModSecurity rules not updating

cmaxwell

Regular Pleskian
Hello,

We have enabled Comodo ModSecurity as the WAF rule set in Plesk 12.5.30 with "Update rule sets" set to "Daily", however the rules don't appear to be updating.

I have tried running the rule update manually:

Code:
plesk php /usr/local/psa/admin/plib/DailyMaintainance/script.php -f UpdateModSecurityRuleSet daily

But it does not seem to be downloading the rules.

In the /var/lib/plesk/cfgmon/zzzz_cwaf_security2.conf_2016_02_04_03_50_21_723365 file, there is the following content:

Code:
<IfModule !mod_security2.c>
  LoadModule security2_module  modules/mod_security2.so
</IfModule>

<IfModule mod_security2.c>

  SecServerSignature "Protected by COMODO WAF"

  SecRuleEngine On
  SecAuditEngine RelevantOnly
  SecAuditLog /var/log/httpd/modsec_audit.log
  SecDebugLog /var/log/httpd/modsec_debug.log
  SecAuditLogType Serial
  SecDebugLogLevel 0
  SecRequestBodyAccess On
  SecDataDir /tmp
  SecTmpDir /tmp
  SecPcreMatchLimit 250000
  SecPcreMatchLimitRecursion 250000
  Include "/usr/local/cwaf/etc/cwaf.conf"
</IfModule>

After checking it seems /usr/local/cwaf does not exist.

Is there something else we should do to get this to work properly?

Thanks,
Chris
 
Try to enable Plesk debug mode https://kb.odin.com/en/120101 and run update manually again with

# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f UpdateModSecurityRuleSet

Check possible errors in output.
 
Back
Top