SkillAgentSearch skills...

Csf

Maintained fork of CSF (ConfigServer Security & Firewall)

Install / Use

/learn @Black-HOST/Csf

README

ConfigServer Security & Firewall (CSF)

<p align="center"> <a href="https://github.com/Black-HOST/csf/actions/workflows/release.yml"><img src="https://img.shields.io/github/actions/workflow/status/Black-HOST/csf/release.yml?branch=main&style=for-the-badge" alt="Build"></a> <a href="https://github.com/Black-HOST/csf/actions/workflows/tests.yml"><img src="https://img.shields.io/github/actions/workflow/status/Black-HOST/csf/tests.yml?branch=main&style=for-the-badge&label=Tests" alt="Tests"></a> <a href="https://github.com/Black-HOST/csf/releases"><img src="https://img.shields.io/github/v/tag/Black-HOST/csf?logo=GitHub&label=Release&color=ba5225&style=for-the-badge" alt="Release"></a> <a href="https://github.com/Black-HOST/csf/releases"><img src="https://img.shields.io/github/downloads/Black-HOST/csf/total?logo=github&logoColor=FFFFFF&label=Downloads&color=376892&style=for-the-badge" alt="Downloads"></a> <a href="#license"><img src="https://img.shields.io/badge/License-GPLv3-blue.svg?style=for-the-badge" alt="License: GPL v3"></a> </p>

[!NOTE] This is a community-maintained fork of CSF. Following the shutdown of the original project and their release of the code under the GPLv3 license in August 2025, this repository serves as a continued development and maintenance effort to keep CSF secure and compatible with modern systems.

CSF is a Stateful Packet Inspection (SPI) firewall, Login/Intrusion Detection and Security application for Linux servers, used by Linix system administrators to secure their infrastructure and simplify server management.

Features

  • Stateful Packet Inspection (SPI): Advanced firewall configuration.
  • Login Failure Daemon (LFD): Detects and blocks brute-force attacks.
  • Extensive Control Panel Support: Integrated UI for cPanel, DirectAdmin, Webmin, and more.
  • Security Checks: Automated server security audits.
  • Email Alerts: Notifications for blocked IPs, login failures, and system issues.

Installation

You can install CSF quickly using one of the following one-liners:

bash <(wget -qO - https://csf.black.host)

or

bash <(curl -sL https://csf.black.host)

This executes the remote installer, which automates the following steps:

  • Installs all necessary CSF dependencies.
  • Deploys the latest stable version of CSF.
  • Runs csftests to validate the installation and ensure everything is configured correctly.

Migration

To migrate from v14 or the original v15.00 (from Way to the Web Limited) to this fork, you need to update your download server configuration.

Execute the following command on your server:

echo "download.black.host" > /etc/csf/downloadservers

After updating the download server, you can either:

  1. Upgrade immediately: Run csf -u
  2. Wait for auto-update: The cron script will perform the upgrade automatically.

Contributors

Any contributions are welcome. Before submitting your contribution, please review the following resources:

<br />

Alt

License

This project is licensed under the GNU General Public License v3.0 (GPLv3). See the LICENSE file for details.

The original code was released by Way to the Web Limited https://github.com/waytotheweb/scripts but was subsequently removed from GitHub. We created a fork from Jonathan (chrirpy) original work at config-server-scripts and stands as original reference for all config server scripts.

This fork continues the legacy of Way to the Web Limited and Jonathan Michaelson work on the CSF firewall, with the goal of ensuring this project remains updated and free forever.

View on GitHub
GitHub Stars12
CategoryDevelopment
Updated5d ago
Forks255

Languages

Perl

Security Score

95/100

Audited on Apr 2, 2026

No findings