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
-
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.filter
says you must pass thebantime
option.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.filter
would result in an error because it just passes the number toSETEX
where 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