Skip to content
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

Can someone explain what "F2B_DB_PURGE_AGE: Age at which bans should be purged from the database (default 1d)" means? #42

Closed
Cookie-Monster-Coder opened this issue May 22, 2020 · 2 comments

Comments

@Cookie-Monster-Coder
Copy link

If I perma ban an IP bu using -1 for ban time. Does F2B_DB_PURGE_AGE purge that perma ban from the database after 1d? I'm kinda confused on what it supposed to do.

Thanks!

@crazy-max
Copy link
Owner

@Cookie-Monster-Coder Permanent banned ips will be never removed. See https://github.com/fail2ban/fail2ban/blob/ccbc0c74051efc66f78f9d5ed6939444a0f55514/fail2ban/server/database.py#L893-L900

@alexpovel
Copy link

Hey, hopefully this follow-up is related enough.

Can you by any chance shed some light onto how this env var interacts with dbpurgeage, a setting in fail2ban.conf? I assume one overrides the other?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants