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:

grep "id:1000" /opt/cpfence/app/cpfwaf/Whitelist_Rules.conf

You should see an entry similar to this:

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 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

Is cPFence Compatible with Cloudflare, BunnyCDN and Quic.Cloud?

Yes, cPFence is fully compatible with Cloudflare, Quic.Cloud, and BunnyCDN. In fact, we recommend...

Why Do I See "could not change directory to /root: Permission denied" Warnings?

You may occasionally encounter the following warning message while using cPFence: could not...

How to Uninstall cPFence ?

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

Configuring Hostname on Ubuntu for cPFence Emails and Features

Setting a proper hostname on your server is important for several reasons, including being able...

How to Set Up Slack Notifications in cPFence?

If you'd like to receive cPFence alerts on your desktop or mobile via Slack, follow the steps...