Connection to VPS only via VPN or SSH - eviltoast

Hey guys,

I finally come around and started the journey of self-hosting and decided to get a VPS. After securing it, by making login via public-key default, I installed CasaOS and instantly regretted it since it now can be reached freely from the internet. A while ago, I read that you can limit the incoming connection to only VPN and ssh. And configured a Wireguard-VPN on the server via pivpn. But the server can still be reached from the internet. So what do I have to do now? Is it even the right choice, or am I missing something? How do you guys secure your VPS?

  • rmstyle@feddit.deOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    The two main reasons I decided to opt for a VPS was, that I don’t have a PC here that is efficient enough and the faster fresh installs and snapshots are a pro too.

    • stown@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      If you haven’t already, check out Proxmox. It’s an operating system that specializes in running Virtual Machines. If you run Proxmox at home you can have all the features that you just mentioned and more.