Is it possible to ban an ip permanently with Rack::Attack::Fail2Ban.filter? #545
Unanswered
masa-ekohe
asked this question in
Questions (Q&A)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like a banned ip to stay banned, but I haven't been able to find a way after reading sources/issues.
Redis's doc states that a key stays permanently if set without "Expire", but
Rack::Attack::Fail2Ban.filtersays you must pass thebantimeoption.https://redis.io/commands/expire#appendix-redis-expires
https://github.com/rack/rack-attack/blob/master/lib/rack/attack/fail2ban.rb#L8
Fail2Ban's doc states that a negative number is considered "permanent", but passing a negative number to
Rack::Attack::Fail2Ban.filterwould result in an error because it just passes the number toSETEXwhere a negative number is considered invalid.https://www.fail2ban.org/wiki/index.php/MANUAL_0_8#Jail_Options
Beta Was this translation helpful? Give feedback.
All reactions