jail

In fail2ban, a named rule set that ties one log file and filter to the ban settings and actions used for one service, such as SSH.

In more detail

Each jail says which log to watch, which lines count as failures, how many failures within which time window trigger a ban, and how long the ban lasts. Jails inherit settings from the default section unless they override them. A jail must be enabled before fail2ban uses it.

Example

[sshd]
enabled = true

Related terms

Taught in

References