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
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. What are your VPN recommendations for accessing self-hosted applications from the outside?

What are your VPN recommendations for accessing self-hosted applications from the outside?

Scheduled Pinned Locked Moved Selfhosted
selfhosted
89 Posts 60 Posters 0 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.
  • F [email protected]
    1. Mullvad

    2. Mullvad

    3. Mullvad.

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

    There is no need to pay for an external service for this and I don't think Mullvad would work for this use case.

    F 1 Reply Last reply
    7
    • B [email protected]

      https://github.com/wg-easy/wg-easy

      WG-Easy to run Wireguard

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

      I would recommend this too. This was the easiest to setup. I only had an issue with docker compose which made the pihole not being accessible while on wireguard. Once I put the pihole and wg-easy on the same docker network it started working.

      1 Reply Last reply
      1
      • D [email protected]

        You got two options which I’ve tried -

        1. A solution like tailscale or zerotier. Simple setup, easy to turn on and just go. Tailscale is newer and has a nicer interface and features like using an actual VPN like Mullvad as an “endpoint” (or whatever they call it). Their Mullvad connection also basically gives you a discount as they charge only $5 for the vpn instead of €5. The catch is that Mullvad charges you that price for 5 devices. So if a sixth device connects to the VPN through tailscale, you get charged $10 for that month.
        2. A cloudflare tunnel with zero trust on top. More work to setup. But makes it easy to access your apps without any vpn. They’re basically exposed to the internet at that point, but locked in behind cloudflare’s authentication. You can literally set it up for one or two email IDs. Yours and a family member’s. Much simpler for others to wrap their heads around. But some people dislike cloudflare for some reason or the other.
        B This user is from outside of this forum
        B This user is from outside of this forum
        [email protected]
        wrote last edited by
        #14

        I'm in camp #2. Only my Gmail address can access my apps from outside my home. It's a little bit of a pain to configure the rules, but once it's done it's done. I've been happy with it.

        You do need to have a domain name though.

        D 1 Reply Last reply
        1
        • F [email protected]

          Run WireGuard on some home machine. (Does not need to be the machine the app you want to access is hosted on.)

          Run WireGuard on your road warrior system.

          There is no step 3.

          I'm doing this right now from halfway around the world from my house and it's been great. Been using iPhone, iPad, and macOS clients connected to linuxserver/WireGuard docker container. Been doing this on many WiFi networks and 5G, no difference.

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

          Is wire guard a service you pay for? Otherwise how does wire guard in your home machine not need your router to forward ports to it? And then the remote client need to be pointed at your home’s external IP?

          F 1 Reply Last reply
          3
          • W [email protected]

            Hello,

            Some time ago, I started self-hosting applications, but only on my local network. So far, it's working fine, but I can't access them as soon as I go outside (which is completely normal).

            For the past few days I've been looking for a relatively secure way of accessing my applications from outside.

            I don't need anyone but myself to have access to my applications, so from what I've understood, it's not necessarily useful to set up a reverse-proxy in that case and it would be simpler to set up a VPN.

            From what I've seen, Wireguard seems to be a good option. At first glance, I'd have to install it on the machine containing my applications, port-forward the Wireguard listening port and configure my other devices to access this machine through Wireguard

            However, I don't have enough hindsight to know whether this is a sufficient layer of security to at least prevent bots from accessing my data or compromising my machine.

            I've also seen Wireguard-based solutions like Tailscale or Netbird that seem to make configuration easier, but I have a hard time knowing if it would really be useful in my case (and I don't really get what else they are doing despite simplifying the setup).

            Do you have any opinions on this? Are there any obvious security holes in what I've said? Is setting up a VPN really the solution in my case?

            Thanks in advance for your answers!

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

            Wireguard is the way to go. I like using wg-easy to use wireguard because its easy to set up in a docker container.

            K 1 Reply Last reply
            11
            • J [email protected]

              Is wire guard a service you pay for? Otherwise how does wire guard in your home machine not need your router to forward ports to it? And then the remote client need to be pointed at your home’s external IP?

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

              WireGuard is free. Obviously my instructions didn't go into detail about specifically how to set everything up. Port forwarding is required. Knowing your servers external IP address is required. You also need electricity, an ISP subscription, a home server (preferably running Linux), so on and so forth. This is /c/selfhosted after all.

              J 1 Reply Last reply
              19
              • F [email protected]

                No I am talking about creating a secure tunnel.

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

                And why, pray tell, do you need Mullvad to do it? I want to know why you think that.

                F 1 Reply Last reply
                7
                • F [email protected]

                  WireGuard is free. Obviously my instructions didn't go into detail about specifically how to set everything up. Port forwarding is required. Knowing your servers external IP address is required. You also need electricity, an ISP subscription, a home server (preferably running Linux), so on and so forth. This is /c/selfhosted after all.

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

                  Yeah that’s fine. The steps were so simple I figured they could work without router config changes if they made some kind of connection handshake in a third party service’s server.

                  But given all that, I wonder if it makes sense to look into if your router has its own vpn server (or flash the firmware with one that does.)

                  F 1 Reply Last reply
                  1
                  • F [email protected]

                    Run WireGuard on some home machine. (Does not need to be the machine the app you want to access is hosted on.)

                    Run WireGuard on your road warrior system.

                    There is no step 3.

                    I'm doing this right now from halfway around the world from my house and it's been great. Been using iPhone, iPad, and macOS clients connected to linuxserver/WireGuard docker container. Been doing this on many WiFi networks and 5G, no difference.

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

                    Okay, so that's pretty much the setup I had in mind. Good to know there is not much need for an extra step for security, thanks for the answer !

                    Well, I guess that would still be vulnerable to DDOS attacks, but that would just prevent me from accessing my cinnamon apple-pie recipe from my self hosted recipe manager for some time. A bit mean, but not catastrophic.

                    I wondered if there would be some other attacks that could compromise my machine with only a wireguard setup, but that's a good sign if there is nothing obvious.

                    N 1 Reply Last reply
                    0
                    • D [email protected]

                      Also a beginner here, I use Tailscale, and it's been a very easy setup!

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

                      Tailscale is very tempting, on one hand it should provide a pretty good layer of security without too much thinking and it is "free", and on another hand, it's a business solution, so it is probably not really free...

                      Thanks for the answer anyway confirming that Tailscale is pretty easy to setup !

                      P J 2 Replies Last reply
                      1
                      • tywele@lemmy.dbzer0.comT [email protected]

                        I use the built-in Wireguard feature of my Fritzbox to connect to my home network.

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

                        Good point, I did not check if my router has already some built-in system that could let me connect to my home network with trusted devices from outside

                        1 Reply Last reply
                        0
                        • J [email protected]

                          Yeah that’s fine. The steps were so simple I figured they could work without router config changes if they made some kind of connection handshake in a third party service’s server.

                          But given all that, I wonder if it makes sense to look into if your router has its own vpn server (or flash the firmware with one that does.)

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

                          Some routers even run WireGuard natively 🙂 like for instance Ubiquiti. Personally I'd rather run it on my own server though because ubiquiti doesn't have easy IAC features.

                          1 Reply Last reply
                          0
                          • F [email protected]

                            Run WireGuard on some home machine. (Does not need to be the machine the app you want to access is hosted on.)

                            Run WireGuard on your road warrior system.

                            There is no step 3.

                            I'm doing this right now from halfway around the world from my house and it's been great. Been using iPhone, iPad, and macOS clients connected to linuxserver/WireGuard docker container. Been doing this on many WiFi networks and 5G, no difference.

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

                            Apologies for the dumb noob question, but if your iOS device is VPNed to your home server, how does it access the open internet? Does it do this via the VPN?

                            eszidiszi@lemmy.worldE F 2 Replies Last reply
                            1
                            • W [email protected]

                              Hello,

                              Some time ago, I started self-hosting applications, but only on my local network. So far, it's working fine, but I can't access them as soon as I go outside (which is completely normal).

                              For the past few days I've been looking for a relatively secure way of accessing my applications from outside.

                              I don't need anyone but myself to have access to my applications, so from what I've understood, it's not necessarily useful to set up a reverse-proxy in that case and it would be simpler to set up a VPN.

                              From what I've seen, Wireguard seems to be a good option. At first glance, I'd have to install it on the machine containing my applications, port-forward the Wireguard listening port and configure my other devices to access this machine through Wireguard

                              However, I don't have enough hindsight to know whether this is a sufficient layer of security to at least prevent bots from accessing my data or compromising my machine.

                              I've also seen Wireguard-based solutions like Tailscale or Netbird that seem to make configuration easier, but I have a hard time knowing if it would really be useful in my case (and I don't really get what else they are doing despite simplifying the setup).

                              Do you have any opinions on this? Are there any obvious security holes in what I've said? Is setting up a VPN really the solution in my case?

                              Thanks in advance for your answers!

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

                              I’m in the same boat and currently run WireGuard to access my services.
                              However the more I extend my stack of services, the more I have use-cases to expose certain services to friends and family. For that I’m currently looking into using Pangolin.

                              1 Reply Last reply
                              4
                              • W [email protected]

                                Hello,

                                Some time ago, I started self-hosting applications, but only on my local network. So far, it's working fine, but I can't access them as soon as I go outside (which is completely normal).

                                For the past few days I've been looking for a relatively secure way of accessing my applications from outside.

                                I don't need anyone but myself to have access to my applications, so from what I've understood, it's not necessarily useful to set up a reverse-proxy in that case and it would be simpler to set up a VPN.

                                From what I've seen, Wireguard seems to be a good option. At first glance, I'd have to install it on the machine containing my applications, port-forward the Wireguard listening port and configure my other devices to access this machine through Wireguard

                                However, I don't have enough hindsight to know whether this is a sufficient layer of security to at least prevent bots from accessing my data or compromising my machine.

                                I've also seen Wireguard-based solutions like Tailscale or Netbird that seem to make configuration easier, but I have a hard time knowing if it would really be useful in my case (and I don't really get what else they are doing despite simplifying the setup).

                                Do you have any opinions on this? Are there any obvious security holes in what I've said? Is setting up a VPN really the solution in my case?

                                Thanks in advance for your answers!

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

                                Managing Wireguard is just one of Tailscale's features.

                                It uses some UDP black magic fuckery to get through NAT and firewalls without having to open ports on the edge. Very useful if you're behind CGNAT and/or your ISP is a dickhead and locks down the firewall on your router (this is why I use it; eat a dick, Vodafone). If the UDP fuckery is not available, it reverts to simple relay servers. The client can also advertise subnets and route to hosts on it. You could install the Tailscale client on OPNSense/pfSense/OpenWRT and access your entire home network through that one device.

                                1 Reply Last reply
                                6
                                • W [email protected]

                                  Tailscale is very tempting, on one hand it should provide a pretty good layer of security without too much thinking and it is "free", and on another hand, it's a business solution, so it is probably not really free...

                                  Thanks for the answer anyway confirming that Tailscale is pretty easy to setup !

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

                                  The tailscale clients are, I believe, open source. It's just the server that's not, and you can run the unofficial but well supported "headscale" as a server if you want. But this requires you to run this somewhere publicly accessible, like a VPS, for coordination and NAT-punching purposes.

                                  But! I'm pretty sure as the business operates right now, that tailscale doesn't have access to the actual data connections or anything, it's all encrypted, they're basically just there for simplicity and coordination. And their business model is to offer simple things for free, like small numbers of devices, with the hope that you like the service and convince your business to pay for the fancy version for money. So I don't think it's quite as bad as the typical "free because I'm harvesting your data" models.

                                  That all having been said, I run headscale 😛

                                  1 Reply Last reply
                                  5
                                  • R [email protected]

                                    And why, pray tell, do you need Mullvad to do it? I want to know why you think that.

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

                                    I didn't say you need it. I strongly recommend the as a provider.

                                    sunny@slrpnk.netS 1 Reply Last reply
                                    0
                                    • I [email protected]

                                      There is no need to pay for an external service for this and I don't think Mullvad would work for this use case.

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

                                      It does work for this use case.

                                      You don't need to, you can use wire guard.

                                      Mullvad is the only VPN you can pay for with cash and actually remain untraced.

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

                                        Apologies for the dumb noob question, but if your iOS device is VPNed to your home server, how does it access the open internet? Does it do this via the VPN?

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

                                        Depends on the client configuration. If you route all the traffic through vpn (so, simplified, 0.0.0.0/0) then all their client device network traffic would go through their vpn server at home and is seen as coming from there; otherwise, if you only route specific addressess (like your home network private addressess only) then only those go to their home network and everything else works like it would without a vpn.

                                        1 Reply Last reply
                                        7
                                        • J [email protected]

                                          Apologies for the dumb noob question, but if your iOS device is VPNed to your home server, how does it access the open internet? Does it do this via the VPN?

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

                                          WireGuard routes certain traffic from the client (your iPhone) through the server (the computer at your house). If you route all traffic, then when your iPhone accesses the internet, it's as if you were at home. Since that WireGuard server is sitting on your home LAN, it is able to route your phones traffic to anything else on that LAN, or out to the internet.

                                          Wireguard clients have a setting called AllowedIPs that tells the client what IP subnets to route through the server. By default this is 0.0.0.0/0, ::/0, which means "all ipv4 and all ipv6 traffic". But If all you want to access are services on your home LAN, then you change that to 192.168.0.0/24 or whatever your home subnet is, and only traffic heading to that network will be routed through the WireGuard server at your house, but all other traffic goes out of your phone's normal network paths to the internet.

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


                                          • Login

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