Hey guys,

after reading up on selfhosting for weeks now I finally decided to take the plunge today and tried setting up my own nextcloud & jellyfin instances. For this purpose I am using a mini PC. (similiar to an Intel NUC)

Now I would like to make both services available to the internet so I could show images to friends while I’m at their place / watch movies with them.

The problem is I am currently not very educated on which security measures I would have to take to ensure that my server / mini PC doesn’t immediately become an easy target for a hacker, especially considering that I would host private photos on the nextcloud.

After googling around I feel like I find a lot of conflicting information as well as write-ups that I don’t fully grasp with my limited knowledge so if you guys have any general advice or even places to learn about all these concepts I would be absolutely delighted!

Thank you guys sooo much in advance for any and all help, the c/selfhosted community has been nothing but a great resource for me so far!!!

  • datallboy
    link
    fedilink
    English
    31 year ago

    It comes down to using secure passwords, 2 factor authentication, and updating software as soon as you can.

    Check out Cloudflare’s zero tier tunnel to only expose the services you need without port forwarding. Added benefit of masking your home’s IP behind Cloudflare to prevent DDOS. Only downside is you need your own domain.

    • @foonex@feddit.de
      link
      fedilink
      English
      31 year ago

      Why would anyone DDOS a random home server? I don‘t think OP has to worry about that.

      • @jrandiny@lemmy.world
        link
        fedilink
        English
        11 year ago

        Depends on the hardware, but my weak server can sometimes be overwhelmed with random ip trying to find a vulnerable service (accessing random port and path combination)

    • @FairlyConstantFox@lemmy.world
      link
      fedilink
      English
      21 year ago

      This is what I’ve ended up doing. I originally wanted to use the DNS proxy option, but I was getting people randomly scanning my home IP anyway.

    • David From Space
      link
      fedilink
      English
      11 year ago

      The multifactor can’t be understated as part of your security stance! I turn it on and enforce it on my home network for any service I host that supports it. And like mentioned elsewhere, only 80 and 443 are opened and they go straight through a proxy.