logoalt Hacker News

SoftTalker • today at 8:48 PM • 2 replies • view on HN

Can you do something with fail2ban? I.e. after a small number of requests resulting in 401 or 404, or a series of requests that's too fast to be reasonably from a human, ban that address for 48 hours.

If a legitimate request later comes from that address, it will probably get through.

But not sure how well iptables handles checking every connection against a list of possibly hundreds of thousands of addresses.


Replies

trickypr • today at 9:07 PM

Fail2ban doesn’t work well against residential bot nets. A single ip generally only makes a couple of requests before rotating.

gerdesj • today at 10:05 PM

ipsets can handle vast numbers of addresses. I'm sure fail2ban uses them these days.