cPFence allows you to quickly check the current state of an IP address to see if it has been whitelisted, blacklisted, and how many times it has been blocked. This feature provides a detailed breakdown, making it easy to track potential issues with any IP address on your server.
Checking the IP Status
To check the status of an IP, simply use the cpfence --check-ip option with the desired IP address. For example:
cpfence --check-ip 87.251.75.136
This command will provide detailed information on whether the IP is whitelisted, blacklisted, and how many times it has been blocked. Below is an example output:
root@server22:~# cpfence --check-ip 87.251.75.136
Checking the current state of IP: 87.251.75.136
+-----------------------------+-----------------------------+
| IP Check Results for: | 87.251.75.136 |
+-----------------------------+-----------------------------+
| Whitelisted (File) | No |
| Whitelisted (IPSet) | No |
| Blacklisted (File) | No |
| Blacklisted (IPSet) | Yes |
| Times Blocked | 58407 |
| Times Blocked by CPF DDoS | 0 |
+-----------------------------+-----------------------------+
root@server22:~#
As shown in the output, the command provides a comprehensive view of the IP's status, including:
- Whether the IP is whitelisted or blacklisted (both in configuration file and IP sets)
- How many times the IP has been blocked
- The number of times the IP has been blocked by cPFence DDoS protection
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.