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/24
diff jail.local jail-fixed.local

Related terms

Taught in

References