How to Install and Configure CSF (ConfigServer Security & Firewall) on a Linux cPanel Server [Updated for 2025]
If you’re managing a cPanel server, ConfigServer Security & Firewall (CSF) has long been one of the most popular and trusted security tools. It provides a simple way to configure your server’s firewall (iptables) and manage login failures, port access, and intrusion attempts — all through a friendly WHM interface.
However, as of August 31, 2025, the developers of CSF have officially discontinued active support and maintenance. The good news?
They’ve released CSF as open source under the GPLv3 license, which means you can still install, use, and even modify it freely.
In this guide, we’ll walk you through the latest method to install CSF on a Linux cPanel server, configure it properly, and ensure it’s ready for production.
Important Notes Before Installation
- CSF is no longer maintained by ConfigServer. Use it at your own discretion.
- The latest open-source GPLv3 version is still fully functional.
- CSF does not work with
firewalld, so you must remove it before installation. - Always take a server snapshot or backup before modifying firewall configurations.
Step-by-Step Guide to Install CSF on cPanel Server
Step 1: Log in to your server via SSH
Use your terminal or an SSH client like PuTTY to log in as the root user.
ssh root@your-server-ip
Step 2: Go to the root directory
Change to the root directory:
cd /root
Step 3: Remove firewalld (if installed)
CSF and firewalld cannot run together. Remove firewalld with:
yum remove firewalld -y
Step 4: Download the latest open-source CSF package
The open-source version is now available on GitHub:
wget https://github.com/waytotheweb/scripts/raw/refs/heads/main/csf.tgz
Step 5: Extract the CSF files
Unpack the downloaded file:
tar -xzf csf.tgz
Then move into the extracted folder:
cd csf
Step 6: Run the installer
For cPanel servers, use the installation script:
./install.cpanel.sh
This script automatically integrates CSF with WHM and configures the essential ports.
Configure CSF from WHM
Once installation completes, log in to your WHM panel and go to:
WHM » Home » Plugins » ConfigServer Security & Firewall
From here, you can manage your firewall rules, open or close ports, and configure login failure alerts.
Verify Installation
To confirm that CSF and LFD are running properly, use these commands in SSH:
csf -v
systemctl status lfd
You should see CSF version details and that LFD (Login Failure Daemon) is active.
Why Still Use CSF in 2025?
Even though it’s discontinued, CSF remains one of the most feature-rich firewall management tools for cPanel environments. It offers:
- IP blocking and whitelisting
- Brute-force protection via LFD
- Port scanning detection
- Email alerts for suspicious activity
- Easy WHM integration
Since it’s now open source, the community can continue to patch, improve, or fork it for future use.
Final Thoughts
While CSF may no longer receive official updates, it’s still a powerful and reliable firewall solution for cPanel servers.
If you’re looking for a free, configurable, and battle-tested security tool, installing the open-source version of CSF is still worth it — especially if you understand basic Linux server management.
However, for long-term stability, keep an eye on community forks or consider alternatives like CSF-ng (if developed), UFW, or iptables directly.