A DirectAdmin firewall after CSF
Last updated:
Most DirectAdmin servers run CSF and lfd, often installed by DirectAdmin's own CustomBuild. ConfigServer, the company behind CSF, closed on 31 August 2025, so many DirectAdmin administrators are asking what to run next.
This page sums up where CSF stands on DirectAdmin, the choices you have, and what the InfraFence agent does on a DirectAdmin server, next to CSF or without it. The facts about CSF and DirectAdmin are as of November 2026.
Where CSF stands on DirectAdmin
- ConfigServer stopped developing CSF and lfd on 31 August 2025. Before closing it released the code under the GPLv3, and its download and update servers went offline: don't point anything at
download.configserver.com. - DirectAdmin did not drop CSF. Since DirectAdmin 1.682 (25 August 2025) CustomBuild checks and installs CSF updates itself, with CSF's own auto-update turned off, and DirectAdmin 1.689 (12 November 2025) moved it to CSF 15.05, with log parsing for newer OpenSSH and new defaults. DirectAdmin's CSF page still documents it.
- cPanel maintains its own fork, but only for cPanel & WHM servers. Outside cPanel, community forks such as Aetherinox/csf-firewall carry CSF on, at their own pace.
So CSF keeps working on DirectAdmin, and receives fixes through CustomBuild. What has changed is that nobody develops it the way ConfigServer did, so new features are unlikely.
Your choices
Keep CSF through CustomBuild
The right choice if you manage one or a few servers and like CSF's files and DirectAdmin's CSF screen. Keep CustomBuild up to date so CSF gets DirectAdmin's updates.
Move to firewalld or nftables, plus fail2ban
The distribution's own tools, maintained upstream. You lose DirectAdmin's CSF screen, and its Brute Force Monitor blocks through CSF: plan how it blocks without it.
Add InfraFence next to either
For agencies and teams with many servers: one live dashboard for all of them, attacks banned at the firewall, outbound traffic and file integrity watched, and fixes that are checked and undone if SSH or a site stops answering.
InfraFence is not a drop-in replacement for CSF's packet filter: it does not set your base policy (which ports are open to the world). Keep CSF, firewalld or nftables for that. InfraFence works on top of it and never opens a port that tool closed.
What the agent does on a DirectAdmin server
- It recognises DirectAdmin from
/usr/local/directadmin, reads its version withdirectadmin v, and shows both in the dashboard. - It reads every domain's traffic. It lists the domains from each user's
domains.listand reads the per-domain access logs in/var/log/httpd/domains, so the web firewall sees the requests to every site (Web firewall). - It leaves CustomBuild's files alone. Under a hosting panel the agent never edits the web server configuration: no ModSecurity rules, no user-agent blocks. Bots set to Block are banned at the firewall instead.
- It bans at the firewall for SSH brute force and web attacks, and can close database ports open to the internet when you ask from the dashboard (Ports and egress). Its bans, the whitelist and country blocks apply to IPv4; closed ports to IPv4 and IPv6.
- It watches what CSF does not: connections leaving the server towards known malicious addresses, DNS answers, malware in the sites and changes to system files.
Next to CSF and lfd
| Tool | What InfraFence does |
|---|---|
| CSF | Keeps its own chain and never edits csf.conf, csf.allow or csf.deny. After csf -r it restores only its own chains, jumps and sets, within seconds. CSF ports change only when you ask from the dashboard. |
| lfd | Both read the same logs and block on their own: lfd blocks stay in CSF, InfraFence bans stay in its own set. |
| Brute Force Monitor | DirectAdmin's BFM blocks through CSF, in csf.deny. InfraFence does not change it, and its own bans stay in its own set. |
The agent's release tests install CSF (the community GPLv3 fork) on the same host, run csf -r and check that the agent's chains and bans come back while SSH keeps answering and CSF's own rules stay exactly as CSF wrote them. The full list of tools is in Coexistence.
Install the agent on DirectAdmin
- Run the read-only check first: the installer's
--dry-runreports anything that would get in the way, and changes nothing. - In the dashboard, Servers › Add server creates an install token, valid for one hour.
- Run the install command as root over SSH. Nothing in DirectAdmin or CustomBuild needs to change.
curl -fsSL https://github.com/infrafence/infrafence-agent/releases/latest/download/install.sh | sudo bash -s -- --dry-runDirectAdmin's supported systems, such as AlmaLinux, Rocky Linux, Debian and Ubuntu, are among the 15 distributions the agent is tested on before every release (Supported distributions).
Questions
- Is CSF still safe to run on DirectAdmin?
- As of November 2026, yes, if CustomBuild keeps it up to date: DirectAdmin ships CSF updates through CustomBuild. Don't download CSF from ConfigServer's old servers.
- Does InfraFence replace CSF?
- Not as a packet filter: it does not decide which ports are open. It replaces the need for one dashboard per server and adds what CSF never had, like outbound detection and checked fixes, next to CSF, firewalld or nftables.
- Do I have to remove CSF to install InfraFence?
- No. The agent detects CSF and works next to it, in its own chains. Nothing in CSF's configuration is changed.
Try it free on 1 server
Starter gives one server full protection, free and with no credit card.
- 01
Create a free account, then open Servers › Add server to get your install token. It is valid for one hour.
Create the token - 02
Then run this as root on the server:
curl -fsSL https://github.com/infrafence/infrafence-agent/releases/latest/download/install.sh | sudo bash -s -- --token <TOKEN>
