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 = trueRelated terms
- fail2ban — A Linux tool that watches log files for repeated failed logins and temporarily blocks the addresses they come from.
- jail.local — The file where you put your own fail2ban settings, which override the packaged defaults in jail.conf.
- maxretry — The fail2ban setting for how many failures an address may make within the findtime window before it is banned.
- bantime — The fail2ban setting for how long an address stays blocked after it is banned.
Taught in
- Defense-in-Depth & Security Control Categories — Cybersecurity Fundamentals, GRC & Cryptography