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
[–] 29 points 3 weeks ago* (5 children)

Use authelia for 2fa

Disable root ssh

Disable password authentication for ssh. Keys only.

Set up Fail2ban

That's about all that's left; 2fa and brute force protection. Good job.

  • source
  • hideshow 5 child comments
  • [–] 14 points 3 weeks ago (2 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 2 child comments
  • [–] 3 points 3 weeks ago

    Why do you expose port 22 to the entire internet? Limit it to your own IP addresses and/or only allow access through your Wireguard/VPN ranges. Then changing the default port becomes meaningless.

  • source
  • parent
  • [–] 3 points 3 weeks ago (1 child)

    Sub fail2ban for wazuh. It does the same but so much more, and does everything with 0 config after fresh install.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 3 weeks ago* (last edited 3 weeks ago)

    wazuh

    Oh hey, thanks for that. I have eyed Sandfly before for filesystem drift detection among other things, but I don't think they have a free tier (anymore?). I also ran into Lynis, which performs health and compliance scans of your systems. Lots of good information and general hardening advice from that.

  • source
  • parent