FAIL2BAN(1)
๐ fail2ban โ the group chat manual ๐
okay so bestie, welcome to the fail2ban page from the General Commands Manual. it's a whole set of server and client programs, and the entire point of them is to limit brute force authentication attempts. yes. the "stop guessing my password" squad. periodt. ๐ฅ
โจ NAME โจ
fail2ban โ a set of server and client programs to limit brute force authentication attempts.
๐ธ DESCRIPTION ๐ธ
so here's the tea. Fail2Ban consists of a client, a server, and configuration files, and the whole little family exists to limit brute force authentication attempts. no cap.
the server program, fail2ban-server, is the one doing the actual work โ it's responsible for monitoring log files and issuing ban/unban commands. ๐ it's giving main character energy, honestly. it gets configured through a simple protocol by fail2ban-client, which can also read configuration files and issue the corresponding configuration commands to the server. so client is like the server's bestie who relays the messages. ๐ซถ
for details on the configuration of fail2ban, go read the jail.conf(5) manual page. and bestie, a jail (as specified in jail.conf) couples filters and actions definitions for any given list of files to get monitored. that's the vibe. ๐
- for details on the command-line options of
fail2ban-serverโ see thefail2ban-server(1)manual page - for details on the command-line options and commands for configuring the server via
fail2ban-clientโ see thefail2ban-client(1)manual page - for testing regular expressions specified in a filter using the
fail2ban-regexprogram โ lowkey may be of use โ its manual page isfail2ban-regex(1)
๐ LIMITATION ๐
ngl this part is important so listen up. Fail2Ban is able to reduce the rate of incorrect authentications attempts, however it cannot eliminate the risk that weak authentication presents. ๐ญ it's a rate limiter, not a miracle worker. if you really want to protect services, configure services to use only two factor or public/private authentication mechanisms. that's the only way to actually lock it down.
and here's the scary one: a local user is able to inject messages into syslog, and using a Fail2Ban jail that reads from syslog, they can effectively trigger a DoS attack against any IP. ๐ know this risk and configure Fail2Ban / grant shell access accordingly. fr fr, don't hand out shell access like it's candy.
๐ FILES ๐
/etc/fail2ban/*
๐ฆ AUTHOR ๐ฆ
Manual page written by Daniel Black and Yaroslav Halchenko. absolute icons, we stan. ๐ซถ
๐ REPORTING BUGS ๐
found a bug? not me being dramatic but please report bugs to:
https://github.com/fail2ban/fail2ban/issues
๐ COPYRIGHT ๐
Copyright ยฉ 2013
Copyright of modifications held by their respective authors. Licensed under the GNU General Public License v2 (GPL). slay, legally. โ๏ธโจ
๐ SEE ALSO ๐
and that's the whole page bestie ๐ this one's from Fail2Ban, dated March 2013 โ yeah she's an older queen but she still runs the group chat. mwah ๐๐ง๐
๐ฆ where this page comes from
- alpine 3.22: fail2ban-doc 1.1.0-r3 ยท GPL-2.0-or-later
- alpine 3.23: fail2ban-doc 1.1.0-r2 ยท GPL-2.0-or-later
- alpine 3.24: fail2ban-doc 1.1.0-r3 ยท GPL-2.0-or-later
- arch rolling: fail2ban 1.1.1-1 ยท GPL-2.0-or-later
- debian bookworm: fail2ban 1.0.2-2
- debian trixie: fail2ban 1.1.0-8
- epel 10: fail2ban-server 1.1.0-6.el10_0 ยท GPL-2.0-or-later
- epel 9: fail2ban-server 1.1.0-6.el9 ยท GPL-2.0-or-later
- fedora 43: fail2ban-server 1.1.0-12.fc43 ยท GPL-2.0-or-later
- fedora 43: fail2ban-server 1.1.0-15.fc43 ยท GPL-2.0-or-later
- fedora 44: fail2ban-server 1.1.0-16.fc44 ยท GPL-2.0-or-later
- nixos 26.05: fail2ban 1.1.0
- nixpkgs unstable: fail2ban 1.1.1
- ubuntu jammy: fail2ban 0.11.2-6
- ubuntu noble: fail2ban 1.0.2-3
- ubuntu noble: fail2ban 1.0.2-3ubuntu0.1
- ubuntu questing: fail2ban 1.1.0-8
- ubuntu resolute: fail2ban 1.1.0-9 ยท GPL-2.0-or-later
- ubuntu stonking: fail2ban 1.1.0-11 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms