Essential System Utils

Excellent System Utilities: Fail2ban – ban hosts that cause multiple authentication errors

Essential System Utilities is a series of articles highlighting essential system tools. These are small utilities, useful for system administrators as well as regular users of Linux based systems.

The series examines both graphical and text based open source utilities. For details of all tools in this series, please check the table at the bottom.

This article looks at Fail2ban, a daemon to ban hosts that cause multiple authentication errors. Fail2ban is free and open source software.


The specific commands to install Fail2ban are distro-specific. On our Ubuntu systems, we installed the software by typing the following commands at a shell:

$ sudo apt update && sudo apt upgrade -y
$ sudo apt install fail2ban

fail2ban.conf contains the default configuration profile. The default settings provide a reasonable working setup.

The only required dependency needed to run Fail2ban is Python.

Next page: Page 2 – In Operation

Pages in this article:
Page 1 – Introduction / Installation
Page 2 – In Operation
Page 3 – Summary

Complete list of articles in this series:

Essential System Tools
ps_memAccurate reporting of software's memory consumption
gtopSystem monitoring dashboard
petSimple command-line snippet manager
AlacrittyInnovative, hardware-accelerated terminal emulator
inxiCommand-line system information tool that's a time-saver for everyone
BleachBitSystem cleaning software. Quick and easy way to service your computer
catfishVersatile file searching software
journalctlQuery and display messages from the journal
NmapNetwork security tool that builds a "map" of the network
ddrescueData recovery tool, retrieving data from failing drives as safely as possible
NeofetchSystem information tool written in Bash
TimeshiftSimilar to Windows' System Restore functionality, Time Machine Tool in Mac OS
GPartedResize, copy, and move partitions without data
ClonezillaPartition and disk cloning software
fdupesFind or delete duplicate files
KrusaderAdvanced, twin-panel (commander-style) file manager
nmonSystems administrator, tuner, and benchmark tool
f3Detect and fix counterfeit flash storage
QJournalctlGraphical User Interface for systemd’s journalctl
QDirStatQt-based directory statistics
FirejailRestrict the running environment of untrusted applications
VeraCryptStrong disk encryption software
UnisonConsole and graphical file synchronization software
hyperfineCommand-line benchmarking tool
TLPMust-have tool for anyone running Linux on a notebook
nnnPortable terminal file manager that's amazingly frugal
GlancesCross-platform system monitoring tool written in Python
CPU-XSystem profiler with both a GUI and text-based
VentoyCreate bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files
Fail2banBan hosts that cause multiple authentication errors
Share this article

Share your Thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.