LFD, the monitoring service supplied with CSF, can report processes that need investigation. This guide explains how to exclude a verified legitimate process from process-tracking alerts without turning off all security notifications.
Investigate the alert first
Confirm the process’s owner, executable path and full command line. A familiar name alone does not prove it is safe. Check the documentation shipped with your installed CSF package because available rules can vary.
An exclusion reduces visibility for matching processes. Prefer a narrow executable or command match over excluding every process owned by a user, and record why the exclusion is needed.
Add a process-tracking exclusion
-
Connect with administrator access and back up
/etc/csf/csf.pignore. -
Open the correct file:
sudo nano /etc/csf/csf.pignore -
Add one appropriate rule using the verified value from the alert. Supported rule forms include:
exe:/full/path/to/trusted-executable cmd:exact command line from the alert user:accountnameThese are alternatives, not instructions to add all three. An
exe:rule identifies an executable, not a log file such aserror_log. -
Save the file. In Nano, press Ctrl+O, confirm the filename, then Ctrl+X.
-
Restart LFD to load the change on a systemd-based installation:
sudo systemctl restart lfd sudo systemctl status lfd -
Check LFD’s log and later alerts to confirm the intended effect.
This file applies to process tracking, not every CSF or LFD alert. Do not edit unrelated notification settings or reload the firewall merely to apply a process exclusion.