News for hackers. Stuff that matters.
Re:Ask HN: How do you continuously monitor web logs for hack... by gog on Tuesday May 08, 2018 @07:26AM (#17020179)
Fail2ban has issues when you have a lot of IPs blocked in memory.

The solution I came up with to this problem is to use a custom ban action that adds an IP to the blocked ipset list with a given TTL, but set fail2ban to think that the IP has to be only banned for 5 seconds or so.

The result is that ipset purges the IP from the list after the TTL expires, but fail2bans working set is a 5 second rolling windows of blocked IPs.

This works great and it's being used in production for a couple of years.

Re:Ask HN: How do you continuously monitor web logs for hack... by danieltillett on Tuesday May 08, 2018 @07:35AM (#17020230)
Sounds like a great solution. Have you written about this in any detail?