How to Enable / Disable WAF?

The cPFence Web Application Firewall (WAF) now fully supports Apache, Nginx, OLS, and LSWS web servers. This guide provides simple instructions for enabling or disabling the WAF globally across your cluster.

Using the cPFence WebUI

 

 

1. Open the cPFence WebUI on your Main Control Panel server.

2. From the sidebar, go to WAF Management.

3. Scroll to the WAF Global Toggle section.

4. Click Enable cPFence WAF or Disable cPFence WAF based on your needs.

This action applies to all selected servers in your cluster.

Using the CLI

Enable WAF

To enable the WAF, run the following command:

cpfence --enable-cpf-waf

Disable WAF

To disable the WAF, run:

cpfence --disable-cpf-waf

These commands will activate or deactivate the WAF system-wide, including Apache, Nginx, and LiteSpeed variants, based on your server type.

 


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.

  • enable waf, disable waf
  • 23 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

Why my custom WAF rules are not working?

If your custom ModSecurity rules aren’t taking effect, it’s often due to duplicate rule IDs or...

How to Block or Whitelist Certain User Agents ?

This guide will help you block or whitelist specific user agents in cPFence. You can manage these...

How to Enable / Disable WAF Rule by ID ?

This guide provides instructions for enabling and disabling specific WAF (Web Application...

How to Identify Problematic WAF Rule IDs in cPFence?

New! You can now use an automatic tracking tool to identify problematic WAF rules in real time....

How to Stop XML-RPC Attacks Server-Wide Using the cPFence WAF?

Note: This feature is now part of the WP-AutoShield Module and is active by default and done...