Fail2Ban

Fail2Ban

Log-monitoring daemon that bans abusive IPs via firewall rules

16.6kstars
1.4kforks
Last commit: 15d ago
Repo age: 15y old
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 Services

Web-Check

Web-Check

All-in-one OSINT tool for analyzing any website.

30k
2.4k
Last commit: 4d ago

Comprehensive on-demand OSINT to analyze a website's security, architecture, and tech stack.

Alternative to:
Shodan
Shodan
+8
SafeLine

SafeLine

Self-hosted WAF and reverse proxy for securing web apps

20.1k
1.3k
Last commit: 2mo ago

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 dete...

Alternative to:
Cloudflare Web Application Firewall (WAF)
Cloudflare Web Application Firewall (WAF)
+7
CrowdSec

CrowdSec

Crowdsourced IDS/IPS and WAF with shared malicious IP intelligence

12.2k
567
Last commit: 18h ago

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

Alternative to:
Fail2Ban
Fail2Ban
+10
Graylog

Graylog

Centralized log management and analysis platform

7.9k
1.1k
Last commit: 1d ago

Graylog is an open source platform for collecting, indexing, searching, and alerting on logs and machine data from many sources in one place.

Alternative to:
Graylog Cloud
Graylog Cloud
+11
OneUptime

OneUptime

Open-source monitoring, incident management, and observability platform

6.4k
307
Last commit: 20h ago

Self-hostable observability platform for uptime monitoring, alerting, incident management, on-call, status pages, logs, and APM in one integrated suite.

Alternative to:
OneUptime
OneUptime
+19
NetAlertX

NetAlertX

Network device scanner and presence detection with alerts

5.3k
307
Last commit: 2d ago

Self-hosted network visibility and presence scanner that discovers connected devices and alerts on new, unknown, or changed hosts across your LAN/Wi‑Fi.

Alternative to:
Fing
Fing
+8