News for hackers. Stuff that matters.
Re:Who's Attacking My Server? by cm2187 on Sunday March 13, 2022 @11:50AM (#30662332)
The problem is that you are also at the mercy of passwords selected by your users for smtp, imap, etc. So you still need some defence against brute force.

For administrative protocols (ssh, rdp, etc), I am a firm believer in IP whitelists, which give you the additional peace of mine of protecting you against future zero days, unless they affect the firewall.

Re:Who's Attacking My Server? by fabian2k on Sunday March 13, 2022 @11:55AM (#30662395)
For SSH simply disallowing passwords entirely removes this problem. For me that's the one single thing that dramatically improves defense against any kind of brute force or untargeted attack.
Re:Who's Attacking My Server? by zinekeller on Sunday March 13, 2022 @12:06PM (#30662527)
I'm actually shocked that you're the first one to mention it. Only use public key logins and if you're not targeted and if it's practical in your workflow change the port (definitely not for security, only so that sshd won't eat as much CPU time from bruteforce attempts).
Re:Who's Attacking My Server? by cube00 on Sunday March 13, 2022 @12:09PM (#30662570)
Just make sure you don't use a port any higher then 1024 or else a non root process can start up and take its place if the real one crashes.
Re:Who's Attacking My Server? by arc-in-space on Sunday March 13, 2022 @04:14PM (#30665270)
Oh, good to know, I will ignore this advice and excitedly await for this to happen to me
Re:Who's Attacking My Server? by Topolomancer on Sunday March 13, 2022 @12:47PM (#30663034)
That's an excellent point. I painted myself into a corner here because I am letting some of my friends use the server as well. Have to gently transition them to public key usage only now.
Re:Who's Attacking My Server? by namibj on Sunday March 13, 2022 @11:04PM (#30668113)
Give them a reasonable deadline, and just disable password login afterwards.

This isn't something they should have trouble understanding/accepting.

Re:Who's Attacking My Server? by bombcar on Sunday March 13, 2022 @03:03PM (#30664628)
You can restrict password auth to particular users/groups, which also greatly reduces the attack vector.
Re:Who's Attacking My Server? by Filligree on Sunday March 13, 2022 @08:40PM (#30667297)
Or require OTP for password authentication.
Re:Who's Attacking My Server? by lima on Sunday March 13, 2022 @05:00PM (#30665649)
Nowadays, if you accept plain user-chosen passwords on SMTP or IMAP, you're already in trouble anyway. Often, the attacker doesn't even have to guess because your users likely re-used the same password across different services...