Skip to content

Question | Unban after restart #3085

Answered by sebres
Keller18306 asked this question in Q&A
Aug 16, 2021 · 1 comments · 13 replies
Discussion options

You must be logged in to vote

Why is the list of bans cleared when restarting and reloading in fail2ban-client?

A restart is like a stop + start, when fail2ban stops it resets everything to leave behind a clean and tidy state (as would be that fail2ban has been not started).
Especially it is important If during restart something action-related is changed (like ports, protocols, or even whole action), so fail2ban will flush (unban) old state and reban with new state (e. g. using other banning actions/parameters).
Also there can be some time between stop and restart, so some banned tickets may be outdated (and will not be banned).

For other needs there is ?sudo? fail2ban-client reload one can use instead of restart - r…

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@Keller18306
Comment options

@sebres
Comment options

@Keller18306
Comment options

@Keller18306
Comment options

@sebres
Comment options

Answer selected by sebres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #3084 on August 16, 2021 11:49.