Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Selfhosted
  3. [SOLVED] ELI5: How to put several servers on one external IP?

[SOLVED] ELI5: How to put several servers on one external IP?

Scheduled Pinned Locked Moved Selfhosted
selfhosted
96 Posts 36 Posters 1 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A [email protected]

    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!

    G This user is from outside of this forum
    G This user is from outside of this forum
    [email protected]
    wrote last edited by
    #52

    The synology NAS can act as a reverse proxy for stuff inside your network. I don't have mine in front of me, so you will have to google the steps, but basically you point the synology to an internal resource and tell it what external subdomain it should respond to.

    A 1 Reply Last reply
    5
    • A [email protected]

      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!

      smokeydope@lemmy.worldS This user is from outside of this forum
      smokeydope@lemmy.worldS This user is from outside of this forum
      [email protected]
      wrote last edited by [email protected]
      #53

      Good to hear you figured it out with router settings. I'm also new to this but got all that figured out this week. As other commenters say I went with a reverse proxy and configured it. I choose caddy over nginx for easy of install and config. I documented just about every step of the process. I'm a little scared to share my website on public fourms just yet but PM me ill send you a link if you want to see my infrastructure page where I share the steps and config files.

      A 1 Reply Last reply
      2
      • G [email protected]

        The synology NAS can act as a reverse proxy for stuff inside your network. I don't have mine in front of me, so you will have to google the steps, but basically you point the synology to an internal resource and tell it what external subdomain it should respond to.

        A This user is from outside of this forum
        A This user is from outside of this forum
        [email protected]
        wrote last edited by
        #54

        Yes, I know where this feature is in the settings, but it's got its own issues and I also turn the NAS off for the night, so it's not an option for me.

        J Y 2 Replies Last reply
        1
        • smokeydope@lemmy.worldS [email protected]

          Good to hear you figured it out with router settings. I'm also new to this but got all that figured out this week. As other commenters say I went with a reverse proxy and configured it. I choose caddy over nginx for easy of install and config. I documented just about every step of the process. I'm a little scared to share my website on public fourms just yet but PM me ill send you a link if you want to see my infrastructure page where I share the steps and config files.

          A This user is from outside of this forum
          A This user is from outside of this forum
          [email protected]
          wrote last edited by
          #55

          Thanks, I will! Wise of you not to share it publicly for security reasons

          1 Reply Last reply
          0
          • A [email protected]

            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!

            epicfailguy@lemmy.worldE This user is from outside of this forum
            epicfailguy@lemmy.worldE This user is from outside of this forum
            [email protected]
            wrote last edited by
            #56

            You already have a lot of good answers ... but I got one more to add.

            I have a very similar setup on my homelab and I'm using a Cloudflare tunnel.

            It's a free service and it's really good because it allows you to expose web services and specific ports for remote access over dynamic IPs without having to expose your own router.

            https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/

            A 1 Reply Last reply
            1
            • epicfailguy@lemmy.worldE [email protected]

              You already have a lot of good answers ... but I got one more to add.

              I have a very similar setup on my homelab and I'm using a Cloudflare tunnel.

              It's a free service and it's really good because it allows you to expose web services and specific ports for remote access over dynamic IPs without having to expose your own router.

              https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/

              A This user is from outside of this forum
              A This user is from outside of this forum
              [email protected]
              wrote last edited by [email protected]
              #57

              Thanks! I got that advice as well, but I would like to keep it self-hosted - I consider using Pangolin on a VPS for that purpose going forward: https://github.com/fosrl/pangolin

              Also, beware of the new attack on Cloudflare Tunnel:
              https://www.csoonline.com/article/4009636/phishing-campaign-abuses-cloudflare-tunnels-to-sneak-malware-past-firewalls.html

              A 1 Reply Last reply
              0
              • A [email protected]

                Yes, I know where this feature is in the settings, but it's got its own issues and I also turn the NAS off for the night, so it's not an option for me.

                J This user is from outside of this forum
                J This user is from outside of this forum
                [email protected]
                wrote last edited by
                #58

                Why do you turn off the NAS at night? Reminds me of my grandparents turning off the wifi at night.

                A 1 Reply Last reply
                0
                • A [email protected]

                  Yes, I know where this feature is in the settings, but it's got its own issues and I also turn the NAS off for the night, so it's not an option for me.

                  Y This user is from outside of this forum
                  Y This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #59

                  then its not selfhosting.

                  A 1 Reply Last reply
                  0
                  • J [email protected]

                    Why do you turn off the NAS at night? Reminds me of my grandparents turning off the wifi at night.

                    A This user is from outside of this forum
                    A This user is from outside of this forum
                    [email protected]
                    wrote last edited by [email protected]
                    #60

                    Drives are somewhat noisy (even though I took fairly quiet ones) and I appreciate total silence at night. Unfortunately, I don't have many places to put it outside my single room, so there's that.

                    I'd love to move to SSDs for storage at some point (I know it's controversial, but they would fit my use case better), but for now it's too expensive for me.

                    J 1 Reply Last reply
                    1
                    • Y [email protected]

                      then its not selfhosting.

                      A This user is from outside of this forum
                      A This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #61

                      In what way? It is a physical server located in my bedroom, sharing resources online.

                      S 1 Reply Last reply
                      0
                      • A [email protected]

                        Drives are somewhat noisy (even though I took fairly quiet ones) and I appreciate total silence at night. Unfortunately, I don't have many places to put it outside my single room, so there's that.

                        I'd love to move to SSDs for storage at some point (I know it's controversial, but they would fit my use case better), but for now it's too expensive for me.

                        J This user is from outside of this forum
                        J This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #62

                        Ahh, that's valid. I've been wanting to build a (relatively) small 16TB SSD NAS for video editing, after which I could dump footage to my main NAS. SSD NAS systems can definitely make sense depending on your use case. Hell, you can even game off of them if you've got 10gig networking.

                        A 1 Reply Last reply
                        1
                        • J [email protected]

                          Ahh, that's valid. I've been wanting to build a (relatively) small 16TB SSD NAS for video editing, after which I could dump footage to my main NAS. SSD NAS systems can definitely make sense depending on your use case. Hell, you can even game off of them if you've got 10gig networking.

                          A This user is from outside of this forum
                          A This user is from outside of this forum
                          [email protected]
                          wrote last edited by [email protected]
                          #63

                          I'd love to eventually have a 10gbps LAN, yep 🙂

                          I'd also love to explore the technology going into cloud gaming, so not only would I launch games using files laying on the server, but could actually play them everywhere from my energy efficient potato laptop 😄

                          But that's long ahead and more of an "if it even works properly"

                          1 Reply Last reply
                          0
                          • A [email protected]

                            Pretty solid!
                            Though insta-ban on everything :80/443 may backfire - too easy to just enter the domain name without subdomain by accident.

                            H This user is from outside of this forum
                            H This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #64

                            Could be indeed. Looking at the nginx logs, setting a permaban on trying to access /git and a couple of others might catch 99% of bots too. And ssh port ban trigger (using knockd for example) is also pretty powerful yet safe.

                            1 Reply Last reply
                            1
                            • T [email protected]

                              Not sure why you're downvote, you're absolutely right. People scan for open ports all day long and will eventually find your shit and try to break in. In my work environment, I see thousands of login attempts daily on brand new accounts, just because something discovered they exist and want to check it out.

                              S This user is from outside of this forum
                              S This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #65

                              Those who have not been burned yet often don't expect it to happen to them. Usually it isn't anything big causing it but some typo in a config or software not updated on time.

                              1 Reply Last reply
                              0
                              • A [email protected]

                                In what way? It is a physical server located in my bedroom, sharing resources online.

                                S This user is from outside of this forum
                                S This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #66

                                Dude above you over is under the perception that it requires 100% uptime or other users to to be classified, which is wrong. You are definitely self hosting, albeit only for yourself I assume. Which is fine

                                A Y 2 Replies Last reply
                                3
                                • A [email protected]

                                  Thanks! I got that advice as well, but I would like to keep it self-hosted - I consider using Pangolin on a VPS for that purpose going forward: https://github.com/fosrl/pangolin

                                  Also, beware of the new attack on Cloudflare Tunnel:
                                  https://www.csoonline.com/article/4009636/phishing-campaign-abuses-cloudflare-tunnels-to-sneak-malware-past-firewalls.html

                                  A This user is from outside of this forum
                                  A This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #67

                                  This attack targets end users, not Cloudflare tunnel operators (i.e. self-hosters). It abuses Cloudflare Tunnels as a delivery mechanism for malware payloads, not as a method to compromise or attack people who are self-hosting their own services through Cloudflare Tunnels.

                                  A 1 Reply Last reply
                                  0
                                  • A [email protected]

                                    While not supportive of Big Tech, I do appreciate your piece of advice, and understand self-hosting needs differ!

                                    P.S. Also beware, seems like there's a new attack through Tunnels:

                                    https://www.csoonline.com/article/4009636/phishing-campaign-abuses-cloudflare-tunnels-to-sneak-malware-past-firewalls.html

                                    A This user is from outside of this forum
                                    A This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #68

                                    Again, attack targets end users, not Cloudflare tunnel operators: It abuses Cloudflare Tunnels as a delivery mechanism for malware payloads, not as a method to compromise or attack people who are self-hosting their own services through Cloudflare Tunnels.

                                    1 Reply Last reply
                                    0
                                    • A [email protected]

                                      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!

                                      possiblylinux127@lemmy.zipP This user is from outside of this forum
                                      possiblylinux127@lemmy.zipP This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #69

                                      What are you running?

                                      If it is http based use a reverse proxy like Caddy

                                      A 2 Replies Last reply
                                      8
                                      • rikudou@lemmings.worldR [email protected]

                                        You can use frp to do the same thing a CloudFlare tunnel does without giving them your unencrypted data.

                                        https://github.com/fatedier/frp

                                        A This user is from outside of this forum
                                        A This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #70

                                        It's definitely not the same thing.
                                        I do understand reservations behind usage free-tier services from Big Bad Corp., but I don't understand malicious reduction of valid arguments for usage of those services.

                                        rikudou@lemmings.worldR 1 Reply Last reply
                                        0
                                        • bruhduh@lemmy.worldB [email protected]

                                          NAT translation, i use my openwrt router for that

                                          possiblylinux127@lemmy.zipP This user is from outside of this forum
                                          possiblylinux127@lemmy.zipP This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #71

                                          OpenWRT also has great IPv6 support

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups