Fail2ban

Fail2ban is a daemon that monitors log files and automatically bans hosts that cause multiple authentication failures, using firewall rules to block further…

  • Home Automation
  • Network Services
  • Security
  • Tools & Utilities
Fail2ban is a daemon that monitors log files and automatically bans hosts that cause multiple authentication failures, using firewall rules to block further access, helping administrators and self-hosters defend servers against brute-force attacks.

Platform availability

Available on 3 of 10 platforms

  • Unraid
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS
  • Proxmox (not listed)
  • Helm (not listed)
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

77/100 Good

Maintained
100last commit 22 days ago
Popular
40102 GitHub stars
Easy to install
553 install platforms, install notes, Docker image
Light to run
95500 MB minimum RAM, runs on ARM
Security check
85no serious findings, CI

Availability: platform listings confirmed today, links checked 47 days ago

GitHub stars
102
Open issues
0
Last commit
2026-10-30
Latest release
1.1.0-r2-ls48
License
GPL-3.0
Activity
rising

Checked 22 days ago - source: GitHub (linuxserver/docker-fail2ban)

Resources & Compatibility

Minimum requirements: 500 MB RAM, 1 CPU core(s). ARM (e.g. Raspberry Pi) is supported.

Checked 54 days ago - source: Docker Hub image tags and published docs

First-install notes

  • Install fail2ban with apt on Ubuntu/Debian Run `apt install fail2ban` so the package installs and its service starts automatically. If the service is not running, fail2ban cannot watch logs or block repeated bad login attempts. source
  • Enable the fail2ban service on CentOS/RHEL Use `systemctl start fail2ban` and `systemctl enable fail2ban` so it is running now and starts after a reboot. Without enabling it, your system can lose protection after a restart. source
  • Turn on the jails you need in jail.local Create or edit jail.local, set enabled=true for things like sshd or nginx, and point logpath to the exact log file fail2ban should watch. If the jail is disabled or watches the wrong log, fail2ban never sees the attempts and won't ban them. source

Fetched 54 days ago - each note links to its source

Alternatives (2)

  • CrowdSec - CrowdSec is a free, open-source IDS/IPS and WAF that detects malicious behavior by analyzing server logs and HTTP requests, then blocks off…
  • defensia-agent

Checked 51 days ago - source: AlternativeTo

Common questions

Why can Fail2Ban ban an IP but the original IP still connect when using Cloudflare?

If the server is behind Cloudflare, the server sees Cloudflare addresses instead of the client's original address. Fail2ban may ban the Cloudflare address, while the original IP can still connect through the proxy.

Why does Fail2Ban stop protecting the system after a reboot?

The fail2ban service must be enabled so it starts after a reboot. On CentOS/RHEL, use systemctl start fail2ban and systemctl enable fail2ban; otherwise protection can be lost after a restart.

Can Fail2Ban reduce resource usage from repeated failed login attempts?

Yes, dropping all requests from an IP after N failed login attempts uses fewer resources than processing those attempts indefinitely. At scale, this can make a difference against DDoS-like repeated request pressure.

Answers sourced from github.com, www.reddit.com, www.reddit.com

Community

Collected 53 days ago - public community threads