encyclopegia.org

Fail2ban

Fail2Ban is an intrusion prevention software framework.[src] Written in the Python programming language, it is designed to prevent brute-force attacks.[src] It is able to run on POSIX systems that have an interface to a packet-control system or firewall installed locally, such as iptables or TCP Wrapper.[src]

Fail2Ban is an intrusion prevention software framework.[src] Written in the Python programming language, it is designed to prevent brute-force attacks.[src] It is able to run on POSIX systems that have an interface to a packet-control system or firewall installed locally, such as iptables or TCP Wrapper.[src] ==Functionality== Fail2ban operates by monitoring log files (e.g.[src] , , etc.) for selected entries and running scripts based on them.[src] Most commonly this is used to block selected IP addresses that may belong to hosts that are trying to breach the system's security.[src] It can ban any host IP address that makes too many login attempts or performs any other unwanted action within a time frame defined by the administrator.[src] It includes support for both IPv4 and IPv6.[src] Optionally longer bans can be custom-configured for "recidivist" abusers that keep coming back.[src] Fail2Ban is typically set up to unban a blocked host within a certain period, so as to not "lock out" any genuine connections that may have been temporarily misconfigured.[src] However, an unban time of several minutes is usually enough to stop a network connection being flooded by malicious connections, as well as reducing the likelihood of a successful dictionary attack.[src] Fail2Ban can perform multiple actions whenever an abusive IP address is detected: update Netfilter/iptables or PF firewall rules, TCP Wrapper's table, to reject an abuser's IP address; email notifications; or any user-defined action that can be carried out by a Python script.[src] The standard configuration ships with popular filters, including Apache, lighttpd, sshd, vsftpd, qmail, Postfix and Courier Mail Server.[src] Filters are defined by Python regexes, which may be conveniently customized by an administrator familiar with regular expressions.[src] A combination of a filter and an action is known as a "jail" and is what causes a malicious host to be blocked from accessing specified network services.[src] As well as the examples that are distributed with the software, a "jail" may be created for any network-facing process that creates a log file of access.[src] Fail2ban is similar to DenyHosts, however, fail2ban can also be configured to monitor any service that logs login attempts to a log file, rather than just SSH, and rather solely relying on to block hosts, fail2ban supports other blocking mechanisms like Netfilter/iptables and TCP Wrappers.[src] ==See also== DenyHosts, a log-based intrusion-prevention security tool Stockade, a rate-limiting approach to spam mitigation.[src] OSSEC, an open-source host-based intrusion-detection system.[src] ==References== ==External links== Debian popularity contest results for fail2ban[src]

23 sentences · 23 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Fail2ban." encyclopegia.org, 2026, https://encyclopegia.org/wiki/fail2ban. Accessed 25 November 2026.

Chicago

"Fail2ban." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/fail2ban.

APA

encyclopegia.org. (2026). Fail2ban. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/fail2ban

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1367431512 · 0.55 · snapshot fail2ban-084401-355325941623ee09 · QID Q736080

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.