WAF Not Working? Learn How to Troubleshoot

If the cPFence Web Application Firewall (WAF) is not functioning as expected, follow these troubleshooting steps to diagnose and resolve the issue.

1. Check LiteSpeed Error Logs

Review the LiteSpeed error logs to check for any relevant WAF-related errors:

tail -f /usr/local/lsws/logs/error.log
tail -n 50 /usr/local/lsws/logs/error.log

These commands will display the most recent log entries, helping to identify any misconfigurations or errors.

2. Restart the Web Server

Restarting the LiteSpeed web server can resolve many WAF-related issues:

systemctl restart lshttpd.service

3. Run the cPFence Cron Job

cPFence relies on its scheduled cron job to update and maintain configurations. Manually running it may fix any issues:

/opt/cpfence/app/cpfcron

After running the cron job, test the WAF again to check if the issue is resolved.

4. Restart cPFence

If the WAF is still not functioning properly, try restarting cPFence:

cpfence --restart

5. Still Not Working?

If none of the above steps resolve the issue, please open a ticket with our support team for further assistance.


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 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

How to Enable / Disable WAF Rule by ID ?

This guide provides instructions for enabling and disabling specific WAF rules in cPFence for...

How to Enable / Disable WAF?

This guide provides simple instructions for enabling and disabling the Web Application Firewall...

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 Stop XML-RPC Attacks Server-Wide Using the cPFence WAF?

Important Note: Recommended Method to Block XML-RPC We’ve introduced a new and improved method...

How Does cPFence Handle Bots? Customize Your Bot Protection

cPFence currently detects and blocks over 1000 different bots, helping to reduce server load and...