News for hackers. Stuff that matters.
Re:How to secure your new VPS: a step-by-step guide by tptacek on Monday October 21, 2024 @10:09PM (#41910494)
The opposite is true about fail2ban: it's cargo-cult security, and people shouldn't be running it. It never made any sense, but it especially makes no sense if you're going to (sensibly) disable password authentication.
Re:How to secure your new VPS: a step-by-step guide by trog on Tuesday October 22, 2024 @12:17AM (#41911141)
I agree for ssh - but I use it on a couple servers that have WordPress for the sole purpose of blocking IPs that engage in brute force attempts.

It has a real and dramatic impact on a few things - I got CPU warnings from one server a couple weeks back because I'd inadvertently broken logging and fail2ban stopped working and someone was doing a persistent brute force at high volume for 8 hours.

After I fixed fail2ban it dropped off immediately. I know some WordPress plugins will do this but I've not had much success with them compared to fail2ban so it's still my default for this purpose.

Are there better system-level approaches than fail2ban in this case? Or is your comment mostly directed towards those using it for ssh blocking?

Re:How to secure your new VPS: a step-by-step guide by tptacek on Tuesday October 22, 2024 @12:37AM (#41911241)
Just SSH.
Re:How to secure your new VPS: a step-by-step guide by oliwarner on Tuesday October 22, 2024 @03:15AM (#41911955)
You're talking about it as if it only handles SSH authentication.

It's no substitute for proper security, but it's a great mechanism for quickly dropping naughty traffic. Even people who practice good security have online systems that are occasionally vulnerable to zero days, or have password forms on webapps. Dropping traffic while it's still in discovery mode is a great way to frustrate automated attacks.