News for hackers. Stuff that matters.
Re:Fail2Ban – Daemon to ban hosts that cause multiple authen... by Cpoll on Friday October 06, 2023 @09:33PM (#37798300)
If anything, you're doing them a (miniscule) favor by keeping them from wasting more resources on failed login attempts. If you really hated them, you'd set up a honeypot.
Re:Fail2Ban – Daemon to ban hosts that cause multiple authen... by diggan on Friday October 06, 2023 @09:44PM (#37798335)
More fun: setup a fail2ban actionban script that instead of banning the IP, shapes the traffic coming from it to have abysmal bandwidth so requests/responses takes really long time, so they'll have to timeout instead of getting failures.
Re:Fail2Ban – Daemon to ban hosts that cause multiple authen... by Tijdreiziger on Friday October 06, 2023 @10:16PM (#37798464)
This is known as tarpitting, and apparently iptables can do it: https://en.wikipedia.org/wiki/Tarpit_%28networking%29
Re:Fail2Ban – Daemon to ban hosts that cause multiple authen... by nvy on Saturday October 07, 2023 @02:43AM (#37799537)
This is hilarious
Re:Fail2Ban – Daemon to ban hosts that cause multiple authen... by diggan on Saturday October 07, 2023 @08:50AM (#37801299)
Neat, didn't know that! Think before I've used Traffic Control (tc) for it, but iptables would be simpler.

Available in `xtables-addons` it seems. After install:

    iptables -A INPUT -p tcp -s $SOURCE_IP -j TARPIT # add IP to tarpit
    iptables -D INPUT -p tcp -s $SOURCE_IP -j TARPIT # remove IP from tarpit