So I'm relatively new to server hosting. (But experienced with remote web hosting from providers.) After about a year of fighting to run Nextcloud on a hosting company and finally losing everything from the cPanel vulnerability a few months ago, I broke down and launched my own home server. I'm looking for advice to maximize security.

CachyOS Linux with ClamAV Docker via Portainer Nextcloud (E2EE), Immich, DocuSeal and NoteTrace Routed through a domain and subdimains via Zero Trust Cloudflare Tunnel and Cloudflare DNS.

I have regular redundant backups both onsite and offsite with Duplicati.

My passwords for OS and all admin dashboards are extremely long, unique, random strings managed by Bitwarden.

I know just enough about this stuff to get into trouble. What else should I setup? I have little to no monitoring going on and don't know much about that direction.

you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 10 hours ago (4 children)

And move SSH to a non-default port. Without that, my public-facing servers get thousands of SSH attacks a day, and it basically goes to zero after moving it to a random-looking high port.

Also, totally agree with using public key login and disable password login.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 10 points 8 hours ago (2 children)

    That's generally good advice but not actually security related.

    Removing all the stress on your ressources by using a non-standard port is good for your ressources, But those automated scanners looking for unsecured devices and trying out password like admin/admin are not actually a risk. It's just a case of security by obscurity and never actually serves its purpose.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 4 hours ago (1 child)

    Very true. There are only ~65K ports. If someone decides they want to, trying all of them to see which one gives a valid response is trivial.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 44 minutes ago*

    Literally a single nmap command will tell me where you "hid" your ssh port.

    Like the poster you're responding to said, it is good advice but not for security. It takes you off the hacker spam list, essentially.

    Rereading this it sounds like I am disagreeing with you sorry. Just trying to reiterate your point.

  • source
  • parent