Troubleshooting No IPDB Activity Logged in Rsyslog

If you’re not seeing any activity related to IPDB blocking in rsyslog, follow these steps to diagnose and fix the issue.

1. Verify if Rsyslog is Running

Run the following command to check the status of rsyslog:

systemctl status rsyslog

If it's not running, start and enable it:

systemctl start rsyslog
systemctl enable rsyslog
systemctl restart rsyslog

If rsyslog isn’t installed, install + start it:

apt update
apt install -y rsyslog
systemctl enable --now rsyslog
systemctl start rsyslog

2. Check Syslog File Permissions

Ensure that /var/log/syslog exists and has the correct permissions:

ls -lah /var/log/syslog

If the file is missing, create it manually:

touch /var/log/syslog
chown syslog:adm /var/log/syslog
chmod 640 /var/log/syslog
systemctl restart rsyslog

3. Verify IPDB Logging

Once rsyslog is running, check if cPFence is blocking any IPs by running:

sudo tail -f /var/log/syslog | grep -E 'cPFence Blocked:|cPFence DDos Protection:|Brute-force Protection'

You should see at least one or two IPs being blocked per minute.

4. Check If Rsyslog Stopped Unexpectedly

If rsyslog was inactive, logging would not have been possible even though protection was active. To check why rsyslog was inactive, run:

journalctl -u rsyslog --no-pager | tail -20

Or check if any system units have failed:

systemctl list-units --failed

If rsyslog was stopped unexpectedly, restarting it should immediately restore logging.

Still No Logging?

Make sure cPFence IPDB and DDos protections are running:

cpfence --enable-ipdb
cpfence --enable-DDos

Additionally, restarting IPDB may fix the issue:

cpfence --restart-ipdb

Need Further Assistance?

Visit our Knowledgebase or contact our support team for help.

  • 0 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

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 Automate Blocking with Online IP Blacklists in cPFence?

cPFence provides a robust IP Database (IPDB) that dynamically adapts to new threats by updating...

Why cPFence May Not Block Certain Connections?

cPFence is designed to intelligently handle incoming traffic and block malicious or abusive...

Am I Under a DDoS Attack? I See Hundreds of GET Requests in the Logs

Read Also: How to Address High Server Load Issues with cPFence? If you're noticing hundreds of...

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...