I’m pretty new to selfhosting and homelabs, and I would appreciate a simple-worded explanation here. Details are always welcome!

So, I have a home network with a dynamic external IP address. I already have my Synology NAS exposed to the Internet with DDNS - this was done using the interface, so didn’t require much technical knowledge.

Now, I would like to add another server (currently testing with Raspberry Pi) in the same LAN that would also be externally reachable, either through a subdomain (preferable), or through specific ports. How do I go about it?

P.S. Apparently, what I’ve tried on the router does work, it’s just that my NAS was sitting in the DMZ. Now it works!

  • AlleroOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    11 hours ago

    Actually, I do - 81 is exactly the default port for nginx proxy manager. I just tried to expose it as a testing example, and already closed it back after a success (apparently port forwarding worked just fine, it’s just that DMZ messed with it)

    And since we’re talking about this, what do I do with it next? I have it on my Pi, how do I ensure traffic is distributed through it as a reverse proxy? Do I need to expose ports 80 and 443 and then it would work automagically all by itself?

    • infeeeee@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 hours ago

      You type the ip of the rpi on the router, so from an external call the router will forward it to the rpi. Or I don’t know what is your question.

      Things may seem automagical in the networking scene, but you can config anything the way you want. Even in nginxproxymanager you can edit the underlying actual nginx configs with their full power. The automagic is just the default setting.

      • AlleroOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        Where do I type rpi’s IP, just in port forwarding? Or somewhere else?

        I want for Nginx proxy, controlled through the Manager, to direct traffic to different physical servers based on subdomain.

        I put in nas.my.domain and I get my Synology on its DSM port. I put in pi.my.domain and I get a service on my Pi.