Skip to content

Start Here

Heisenbug edited this page Mar 5, 2026 · 1 revision

At a glance

  • Fastest path from zero to a working CSF deployment.
  • 10-minute bootstrap command sequence.
  • Documentation paths organized by operator intent.

Welcome to the CSF wiki. This page is the fastest path to become productive.

What CSF is

CSF combines:

  • Firewall management (iptables/nftables environment dependent)
  • LFD (Login Failure Daemon) for brute-force and behavior monitoring
  • Operational tooling for alerts, tracking, and control panel integration

If you're new, read this first:

10-minute bootstrap

Replace sample values before running commands (for example 203.0.113.10 with your real admin IP).

# 1. Install CSF (if not already installed)
bash <(curl -sL https://csf.black.host)

# 2. Run module/capability tests
perl /etc/csf/csftest.pl

# 3. Review and tune csf.conf (ports, thresholds, UI)
# use your preferred editor: nano, vi, vim, etc.
nano /etc/csf/csf.conf

# 4. Add your admin IP to the allow list
csf -a 203.0.113.10 My admin IP

# 5. Restart CSF and LFD
csf -ra

# 6. Verify logs and confirm access
tail -n 50 /var/log/lfd.log

Keep TESTING="1" in csf.conf during initial setup. This auto-flushes rules after 5 minutes if you lose access.

Detailed steps:

Common first tasks

Pro-Tip: Use csf -g <term> (e.g., csf -g 1.2.3.4 or csf -g 80) to search across all allow/deny/ignore lists and active firewall rules. It is the fastest way to diagnose connectivity issues.

Task Where to look
Allow a trusted IP permanently csf -a IP comment or csf Command Line Options
Investigate repeated login blocks Login Tracking
Enable block list feeds safely IP Block Lists
Add anti-flood protections Port Flood Protection
Check if an IP is blocked csf -g IP
View/clear temporary blocks csf -t / csf -tr IP

⚠️ Lockout Risk. Commands like csf -f (flush) or csf -r (reload) can lock you out if your IP is not properly allowed or if the configuration is broken. Always keep TESTING="1" during initial setup and ensure you have out-of-band access (Console/IPMI).

Documentation paths

Last reviewed: 2026-02-27


← Home · Install & Migrate →

Clone this wiki locally