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.