How to Whitelist Your Enhance Main CP from cPFence WAF?

By default, cPFence automatically whitelists your Enhance Main Control Panel in the WAF to prevent any interference with its functionality. You can manually verify or reapply the rule if needed by following the guide below.

Verify the Whitelist Rule for Your Enhance Main Control Panel

To check if your Enhance Main CP is already whitelisted in the WAF, run:

tail -n 2 /opt/cpfence/app/cpfwaf/Whitelist_Rules.conf

You should see an entry similar to this:

# Whitelist rule to exclude Enhance control panel from all rules
SecRule REQUEST_HEADERS:Host "@streq your.maincp.com" "id:1000,phase:1,pass,nolog,ctl:ruleEngine=Off"

What to Do If the Rule Is Missing?

If the rule is missing, restart cPFence to reapply the default whitelist:

cpfence --restart

⚠️ Do not manually add the rule, as it will be automatically overwritten during updates.

Whitelist Your Enhance Cluster’s IPs

In addition to WAF whitelisting, it is highly recommended to whitelist all your Enhance servers' IPs across your cluster to avoid connectivity issues.

Follow this guide for step-by-step instructions:

How to Whitelist Your Enhance Cluster’s IPs in cPFence


Need Further Assistance?

If you encounter any issues or need additional help, feel free to reach out to our support team via your client portal.

  • 0 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Articles connexes

How to Update cPFence Software & Signatures ?

cPFence software and virus signatures are automatically updated by default, ensuring continuous...

How to Know the Current Installed cPFence Version ?

To check the currently installed version of cPFence and see if an update is available, you can...

How to Uninstall cPFence ?

If you need to remove cPFence from your system, follow the steps below to uninstall the software....

Resolving Delays in cPFence Command Execution

If you notice that cPFence commands are taking an unusually long time to complete, this is likely...

How to Back Up and Restore cPFence Settings?

Backing up and restoring your cPFence settings is now easier than ever with the newly added...