Fail2Ban logo

Fail2Ban

Website

Log-monitoring daemon that bans abusive IPs via firewall rules

18.3k stars 1.5k forks last commit first released

Actively maintained

Last commit 23 Jun 2026.

Fail2Ban screenshot

Fail2Ban is a security daemon that monitors log files for suspicious patterns such as repeated authentication failures and blocks offending IP addresses. It helps reduce brute-force attacks by applying temporary or persistent bans via firewall rules on the host.

Key Features

  • Watches common service logs (for example SSH and web servers) and supports custom log sources
  • Flexible rule system (filters and jails) to define match patterns, thresholds, and ban duration
  • Multiple ban actions, typically implemented by updating local firewall rules
  • Supports IPv4 and IPv6 address matching
  • Runtime administration via a command-line client to query status and manage jails

Use Cases

  • Protect SSH from brute-force login attempts on servers and VPS instances
  • Reduce credential-stuffing against web applications by banning abusive clients
  • Add automated response to noisy scanners by blocking IPs based on log evidence

Limitations and Considerations

  • Relies on accurate log generation and parsing; misconfigured filters can cause false positives
  • Mitigates repeated failures but does not replace strong authentication controls

Fail2Ban is widely used as a lightweight, host-based intrusion prevention layer that complements existing authentication and firewall hardening. It is especially effective for quickly reducing opportunistic brute-force traffic with minimal operational overhead.

Categories:

Tags:

Tech Stack:

Share:

Similar to Fail2Ban

CrowdSec logo

CrowdSec

Crowdsourced IDS/IPS and WAF with shared malicious IP intelligence

14.3k
688
Last commit

CrowdSec is an open-source security engine that detects attacks from logs and blocks malicious IPs using bouncers and community-curated threat intelligence.

MITActively maintained
Alternative to:
Fail2Ban logo
Fail2Ban
+10
Fail2Ban-Report logo

Fail2Ban-Report

Web dashboard for Fail2Ban logs and centralized UFW blocklist management

307
12
Last commit

Lightweight PHP dashboard that converts Fail2Ban logs into searchable JSON reports and centralizes UFW-based blocklist control with HTTPS-based multi-server sync.

GPL-3.0Slowing down
Alternative to:
Fail2Ban logo
Fail2Ban
SafeLine logo

SafeLine

Self-hosted WAF and reverse proxy for securing web apps

22k
1.5k
Last commit

SafeLine is a self-hosted Web Application Firewall (WAF) and reverse proxy that defends web apps from SQL injection, XSS, bot abuse, and DDoS using ML-powered threat detection and configurable policies.

GPL-3.0Actively maintained
Alternative to:
Cloudflare Web Application Firewall (WAF) logo
Cloudflare Web Application Firewall (WAF)
+7
iodine logo

iodine

IPv4-over-DNS tunneling server and client

7.9k
596
Last commit

iodine is a DNS tunneling tool that forwards IPv4 traffic through DNS queries and replies, providing a TUN interface to route IP traffic when only DNS is allowed.

ISCSlowing down
Alternative to:
Cloudflare Tunnel logo
Cloudflare Tunnel
+15
wg-easy logo

wg-easy

WireGuard VPN server with a web-based admin interface

26.5k
2.5k
Last commit

Run a WireGuard VPN server with an easy web admin UI to manage clients, generate configs and QR codes, and monitor connections and traffic.

AGPL-3.0Actively maintained
Alternative to:
Tailscale logo
Tailscale
+14
OpenVPN logo

OpenVPN

Open-source VPN daemon for TLS-based secure tunneling

14.3k
3.4k
Last commit

OpenVPN is a widely used open-source VPN daemon providing TLS/SSL-based secure tunneling, flexible client-server and site-to-site modes, and cross-platform support.

Actively maintained
Alternative to:
OpenVPN CloudConnexa logo
OpenVPN CloudConnexa
+18