-
Notifications
You must be signed in to change notification settings - Fork 258
Cheatsheet Structure
Heisenbug edited this page Mar 5, 2026
·
1 revision
- Quick map of CSF/LFD files and folders you will touch most.
- Prioritizes operational paths over exhaustive internals.
- Includes “where to edit what” shortcuts.
-
/etc/csf/— primary configuration and policy files -
/etc/csf/ui/— integrated WebUI certs and access lists -
/var/lib/csf/— runtime/cache/state and generated data -
/usr/local/csf/bin/— helper scripts (csftest.pl, loaders, uninstall) -
/usr/local/csf/lib/— Perl modules and internal logic -
/usr/local/csf/tpl/— alert/message templates -
/usr/local/include/csf/pre.d/— scripts run before CSF rule load -
/usr/local/include/csf/post.d/— scripts run after CSF rule load
-
/etc/csf/csf.conf— main feature flags and policy behavior -
/etc/csf/csf.allow— permanent allow entries -
/etc/csf/csf.deny— permanent deny entries -
/etc/csf/csf.ignore— sources LFD should ignore -
/etc/csf/csf.blocklists— external feed definitions -
/etc/csf/csf.pignore— process tracking ignore rules -
/etc/csf/csf.fignore— directory watch ignore rules -
/etc/csf/csf.redirect— port/IP redirection rules -
/etc/csf/ui/ui.allow— allowed WebUI source IPs/CIDRs -
/etc/csf/ui/ui.ban— WebUI denied IPs -
/var/log/lfd.log— primary security and operational log stream
-
/usr/sbin/csf— CSF CLI entrypoint -
/usr/sbin/lfd— Login Failure Daemon -
/lib/systemd/system/csf.service— CSF service unit -
/lib/systemd/system/lfd.service— LFD service unit
-
Open/close ports →
csf.conf(TCP_IN/TCP_OUT/UDP_IN/UDP_OUT) -
Permanent trust/block decisions →
csf.allow/csf.deny -
Noisy trusted process exclusions →
csf.pignore -
Large reputation feeds →
csf.blocklists -
Custom startup firewall logic →
pre.d/andpost.d/ -
WebUI access problems →
ui.allow,ui.ban, and/var/log/lfd.log
- Editing deep internal files under
/usr/local/csf/lib/without a clear need. - Forgetting that
pre.dandpost.drun at different phases. - Troubleshooting UI issues without checking
ui.allowfirst.
- csf Command Line Options
- External Pre- and Post- Scripts
- Integrated User Interface Feature
- Troubleshooting & Recovery
Last reviewed: 2026-02-27
← Previous: Cheatsheet: Home · Next: Cheatsheet: Commands
- Security Features Guide
- Cloud & Container Hardening
- Automation & IaC
- IPv6 Deployment & Hardening
- IP Block Lists
- Reference Map
- Introduction
- csf Principles
- lfd Principles
- csf CLI Options
- lfd CLI Options
- Login Tracking
- Regex Custom Cookbook
- Script Email Alerts
- Process Tracking
- Directory Watching
- Advanced Filters
- Multiple Ethernet
- Generic Linux
- FTP Issues
- Messenger Service
- Block Reporting
- Port Flood
- Pre/Post Scripts
- Port Knocking
- Connection Limit
- Port/IP Redirect
- Integrated UI
- RESTRICT_SYSLOG
- Exim SMTP AUTH
- UI Skinning
- InterWorx
- CentOS Web Panel