New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bans in database won't be removed when unbanning #1582
Comments
If you want to simply clear the database and start from scratch, it is very simple. (assuming you are on Ubuntu these are the commands) I have found a reset is needed some time to get everything working smoothly again. sudo service fail2ban stop This resets both the fail2ban.log file and deletes the database which gets re-created on startup. KR From: L4rS6 notifications@github.com A banned IP will be added to the sqlite database when it gets banned[1] [1] We will be very grateful, if your problem was described as completely as possible, Environment: Fill out and check ([x]) the boxes which apply. If your Fail2Ban version is outdated, Fail2Ban version (including any possible distribution suffixes): Summary here Steps to reproduce Expected behavior Observed behavior Any additional information Configuration, dump and another helpful excerpts Any customizations done to /etc/fail2ban/ configuration Relevant parts of /var/log/fail2ban.log file: preferably obtained while running fail2ban with loglevel = 4 Relevant lines from monitored log files in question: — |
A banned IP will be added to the sqlite database when it gets banned[1]. When the IP gets unbanned, this records still exists (fail2ban version 0.9.5).
[1]
sqlite> select * from bans;
....
ssh|banned-ip|1476644580|{"matches": ["match-string"], "failures": 5}
The text was updated successfully, but these errors were encountered: