cPFence provides robust tools for managing IP databases (IPDB) and protecting against DDoS attacks. This guide will help you use these features effectively.
IPDB Commands
Enable IPDB
- This command activates the cPFence IPDB service, applying country settings and necessary configurations.
cpfence --enable-ipdb
Disable IPDB
- This command deactivates the cPFence IPDB service, stopping any active IPDB features.
cpfence --disable-ipdb
Restart IPDB
- This command restarts the cPFence IPDB service, refreshing all IPDB/DDoS settings and configurations.
cpfence --restart-ipdb
DDoS Protection Commands
Enable DDoS Protection
- This command activates DDoS protection with a default limit of 100 connections. You can adjust the limit as needed.
cpfence --enable-DDos
Disable DDoS Protection
- This command deactivates DDoS protection, setting the connection limit to a high value (5000) to allow normal traffic.
cpfence --disable-DDos
Under Attack Mode
Activate Under Attack Mode
- Use this command when your server is under a heavy DDoS attack. It will apply aggressive protections to mitigate the attack.
cpfence --under-attack-on
Deactivate Under Attack Mode
- Once the attack has subsided, use this command to restore normal protection settings.
cpfence --under-attack-off
Additional Information
- To adjust DDoS protection settings, edit the
CONNECTIONS_LIMIT
value in/opt/cpfence/config.conf
. - Restart the cPFence IPDB service after making changes to apply the new settings.
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.