fail2ban

A Linux tool that watches log files for repeated failed logins and temporarily blocks the addresses they come from.

In more detail

It reads logs such as the SSH authentication log, counts failures per address, and adds a firewall rule to ban an address that fails too often within a time window. Its behaviour is set in jails, each with its own thresholds and an ignore list of addresses that are never banned. It is both a detective and a corrective control, and it slows guessing but does not replace strong authentication.

Example

fail2ban-client status sshd

Related terms

Taught in

References