bantime
The fail2ban setting for how long an address stays blocked after it is banned.
In more detail
When the ban ends, the address can try again, so bantime slows guessing rather than stopping it forever. Longer bans hurt attackers more but also hurt real users caught by mistake. Fail2ban can also be configured to increase the ban for repeat offenders.
Example
bantime = 1hRelated terms
- maxretry — The fail2ban setting for how many failures an address may make within the findtime window before it is banned.
- findtime — The fail2ban setting for the time window in which failures are counted; reaching maxretry failures inside it triggers a ban.
- 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.
- fail2ban — A Linux tool that watches log files for repeated failed logins and temporarily blocks the addresses they come from.
Taught in
- Defense-in-Depth & Security Control Categories — Cybersecurity Fundamentals, GRC & Cryptography