Why Does a Whitelisted IP Still Appear in cPFence Stats?

If you’ve whitelisted an IP in cPFence but it still appears in the statistics, there’s no need to worry. This behavior occurs because the stats function in cPFence reads the historical data stored in the server's syslog files. Whitelisting an IP prevents future actions against it but does not clear its previous entries in the logs.

How to Clear cPFence Stats for Whitelisted IPs?

To start fresh and remove old entries from the stats, you can clear the syslog files using the following command:

find /var/log -maxdepth 1 -name "syslog*" ! -name "*.gz" -exec truncate -s 0 {} \;

This command will truncate all syslog files (except compressed ones), effectively resetting the logs and clearing old entries from the statistics.


Important Notes

  • Whitelisting an IP ensures that cPFence will no longer block or act against it in the future.

  • Clearing syslog files is optional and will not affect the current functionality or protections provided by cPFence.

  • It is recommended to back up your logs if you need to retain historical data for future reference.


Need Further Assistance?

If you have any questions or encounter issues, please contact our support team via your client portal.

  • 1 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

How to use cPFence IPDB / DDoS Module ?

cPFence provides robust tools for managing IP databases (IPDB) and protecting against DDoS...

How to Whitelist / Blacklist a Full Country ?

This guide explains how to whitelist or blacklist entire countries in cPFence. You can manage...

How to Whitelist / Blacklist an IP ?

This guide explains how to manage IP addresses by adding them to the whitelist or blacklist in...

How to Fix Bulk IP Blacklisting or Whitelisting Issues in cPFence?

If you're facing issues when attempting to bulk blacklist or whitelist IPs in cPFence, the most...

How to Check the Status of an IP in cPFence?

cPFence allows you to quickly check the current state of an IP address to see if it has been...