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  = 1h

Related terms

Taught in

References