jail.local
The file where you put your own fail2ban settings, which override the packaged defaults in jail.conf.
In more detail
Package updates can replace jail.conf, so local changes belong in jail.local or in files under jail.d. Its default section holds shared settings such as bantime, findtime, maxretry and ignoreip, and each jail section below inherits them. Reviewing changes to this file as a diff shows exactly what a tuning change does.
Examples
[DEFAULT]
bantime = 1h
findtime = 10m
maxretry = 5
ignoreip = 127.0.0.1/8 192.0.2.0/24diff jail.local jail-fixed.localRelated terms
- fail2ban — A Linux tool that watches log files for repeated failed logins and temporarily blocks the addresses they come from.
- 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.
- diff — A listing of the differences between two versions of something, such as two files, two commits or two screenshots.
- findtime — The fail2ban setting for the time window in which failures are counted; reaching maxretry failures inside it triggers a ban.
Taught in
- Defense-in-Depth & Security Control Categories — Cybersecurity Fundamentals, GRC & Cryptography