Repository navigation
Start Here
- 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.
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:
Replace sample values before running commands (for example
203.0.113.10with 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.logKeep
TESTING="1"incsf.confduring initial setup. This auto-flushes rules after 5 minutes if you lose access.
Detailed steps:
- Install & Migrate
- Upgrade & Breaking Changes
- Usage: Getting Started
- Configuration Guide
- Troubleshooting & Recovery
Pro-Tip: Use
csf -g <term>(e.g.,csf -g 1.2.3.4orcsf -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 likecsf -f(flush) orcsf -r(reload) can lock you out if your IP is not properly allowed or if the configuration is broken. Always keepTESTING="1"during initial setup and ensure you have out-of-band access (Console/IPMI).
- Ops/Admin flow: Install & Migrate → Usage: Getting Started → Configuration Guide → CLI Guide
- Security flow: Security Features Guide → Troubleshooting & Recovery → Troubleshooting Decision Trees
- Cheatsheet flow: Cheatsheet: Home → Cheatsheet: Commands → Cheatsheet: Structure
- Scenario flow: Deployment Runbooks
- Panel/Platform flow: Integrations Guide → Panel Integrations Guide
Last reviewed: 2026-02-27
← Home · Install & Migrate →
- 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