How annoying is it to connect to VPN/use Tailscale instead of being able to access the service directly?

2 years ago by Yingwu to c/selfhosted

So I'm just being introduced to the concept of using a VPN or something like Tailscale to access one's services, instead of opening the services directly to the web, but I'm thinking for streaming purposes or just accessing your services on the run, isn't it an annoyance having to connect to your home network all the time? Or do you keep the VPN running on your phone for example? What if you use a VPN provider for privacy purposes, wouldn't one need to then switch VPN connection?

Dust0741 33 points 2 years ago

I keep it running always. Partly to access stuff at home, and party to get the ad-blocking from pihole.

Do not expose stuff unless you fully understand the security risks

path: 0 13100508, hotness: undefined, score: 33, children: 5
Yingwu 4 points 2 years ago

How's the power draw on mobile devices?

path: 0 13100508 13100684, hotness: undefined, score: 4, children: 4
avidamoeba 8 points 2 years ago

Not noticeable with always-on Tailscale with the default split-tunnel mode. That is when Tailscale is only used to access Tailscale machines and everything else is routed via the default route.

path: 0 13100508 13100684 13106227, hotness: undefined, score: 8, children: 0
Dust0741 7 points 2 years ago

Its not bad using the official wireguard app. Its definitely noticable. On the android battery screen it'll show around 5% after a full day of use and it on always

path: 0 13100508 13100684 13100717, hotness: undefined, score: 7, children: 1
BearOfaTime 4 points 2 years ago

I'd consider 5% to be trivial, for what it does.

My battery consumption really depends on how much traffic I send over it.

path: 0 13100508 13100684 13100717 13101361, hotness: undefined, score: 4, children: 0
farcaller 6 points 2 years ago

For the last 10 days tailscale clocked 1% battery on my phone. I honestly didn’t even consider turning it off for battery savings.

path: 0 13100508 13100684 13111775, hotness: undefined, score: 6, children: 0
OneCardboardBox 22 points 2 years ago

isn’t it an annoyance having to connect to your home network all the time?

It's less annoying than the gnawing fear that my network might be an easy target for attackers.

path: 0 13108720, hotness: undefined, score: 22, children: 0
zelifcam 9 points 2 years ago
path: 0 13100679, hotness: undefined, score: 9, children: 5
Yingwu 2 points 2 years ago

Probably just me that's confused. I thought Tailscale was similar to WireGuard but much easier to set up. So one connects to the services directly, and not just the general home network (like a VPN) where you then enter whatever address you need to access the service?

path: 0 13100679 13100768, hotness: undefined, score: 2, children: 4
BearOfaTime 8 points 2 years ago

Tailscale is wireguard (it uses the wireguard protocols, even says so on the box), just with a centralized resolver to make things easier to setup and manage.

I'm not sure what you're saying with the rest of your comment, as Tailscale is a mesh network, not a VPN as most people think of it.

It encrypts your traffic, but only into the network of which your device is a member. You can't even see any devices, or networking, outside the Tailscale network, unless a device is configured as a Subnet router. Then you can see devices in the network which the Subnet Router links together.

For example, you have 3 machines, a laptop on mobile data, and 2 desktops on your home LAN. One desktop and the laptop have Tailscale, they can communicate over Tailscale to each other, but the laptop cannot connect to the second desktop because it's on a different network, since there's no routing between Tailscale and your home LAN.

You then configure Subnet Routing on the desktop that has Tailscale, now your laptop can connect o any device on the home LAN, so long as the desktop is running and Tailscale is up.

Think of mesh networks as Virtual LANs in software, configurable on each device (mostly, sort of). Twenty years ago Hamachi was the go-to for this, it was brilliant, and much easier to use than today's mesh networks, just far less capable/manageable/configurable.

path: 0 13100679 13100768 13101525, hotness: undefined, score: 8, children: 2
Yingwu 1 point 2 years ago

Great explanation, thank you! Hamachi brings back memories haha

path: 0 13100679 13100768 13101525 13102150, hotness: undefined, score: 1, children: 1
BearOfaTime 3 points 2 years ago

It still exists! (Or did about a year ago).

When I got my first Android (2009 ish), I searched high and low for a way to run Hamachi on it. There have been solutions, but always clumsy and difficult to implement.

I miss Hamachi, it was so simple to use.

path: 0 13100679 13100768 13101525 13102150 13103672, hotness: undefined, score: 3, children: 0
signalsayge 5 points 2 years ago

It can be just like you've said. You can also run tailscale directly on the system hosting a service and access it directly over the tailscale network.

path: 0 13100679 13100768 13100846, hotness: undefined, score: 5, children: 0
Dust0741 8 points 2 years ago

For an external VPN like mullvad, I run my own proxy. Again it's only available from my VPN or inside my network.

It uses socks5 and gluetun docket containers and in apps that support proxies, I can add my proxy to it and it'll route that traffic through the paid VPN.

Or, a work profile (see shelter) or androids new private spaces. If you have private spaces, it uses a seperate network. So if you have a VPN installed outside the private space, it won't work on apps inside the space. So, what you could do is have a paid VPN inside private spaces, and use it and a web browser or whatever there, and use your server's VPN outside the private space.

Lmk if you want any of my docker composes

path: 0 13100597, hotness: undefined, score: 8, children: 5
Yingwu 2 points 2 years ago

Very interesting. Didn't know this was a possibility. I don't need anything now but thanks for offering, might get back to you

path: 0 13100597 13100674, hotness: undefined, score: 2, children: 0
theorangeninja 1 point 2 years ago

This sounds very interesting. I always wondered if I could use a paid VPN together with Tailscale or Netbird. But I'm not sure I understood how you set this up. And what are Android private spaces?

path: 0 13100597 13118260, hotness: undefined, score: 1, children: 3
Dust0741 2 points 2 years ago

I have gluetun+socks5 containea running, then in an app, I put in localip:port into a proxy field. Then that app will use that connection for internet. Browsers on desktop also support proxies. So if you want a specific browser to always use the VPN, this is a very simple way to do that.

https://source.android.com/...

path: 0 13100597 13118260 13120556, hotness: undefined, score: 2, children: 2
theorangeninja 1 point 2 years ago

Thank you for pushing me into the rabbit hole. But gluetun already has a socks proxy server built in, if I read that correctly on their github.

path: 0 13100597 13118260 13120556 13151502, hotness: undefined, score: 1, children: 1
Dust0741 2 points 2 years ago

Oh fascinating. I'll have to look into that

path: 0 13100597 13118260 13120556 13151502 13154072, hotness: undefined, score: 2, children: 0
merde 6 points 2 years ago

🤔

path: 0 13101898, hotness: undefined, score: 6, children: 0
Kusimulkku 6 points 2 years ago

Sucks a high hard one if you plan for others to use your services too. If it's just you it's not that annoying

path: 0 13109726, hotness: undefined, score: 6, children: 0
undefined 5 points 2 years ago

I think the part you’re missing (and others haven’t addressed) is that you don’t send 100% of your traffic to one endpoint (much like how most use VPNs). You can route different things to different places.

For example, I’m in the US and have two Tailscale exit nodes. Both are located on VPS machines in the US, but one sends traffic down a double-hop VPN back out into the US, the other does the same but to Switzerland. My “default” route is through Switzerland (better privacy laws) but I am forced to route some things through the US exit node due to websites that won’t work outside the US. For my personal devices, traffic routes directly to them via WireGuard tunnels.

In addition, my wife doesn’t care about blocking everything that I do (social media, tracking) but her phone still needs to update sensors in Home Assistant. She can choose not to use the exit nodes but can still communicate with our nodes on Tailscale. She also uses it to print documents at home from her laptop while she’s at work.

Recently I was waiting in a hospital with public (unsafe) WiFi that blocked UDP traffic, but Tailscale does some magic that will relay traffic via TLS. I was able to access services at home with a 20ms latency. The tech is very, very nice to have.

path: 0 13102395, hotness: undefined, score: 5, children: 0
jhoward 4 points 2 years ago

Use Tailscale, for the most part it's pretty transparent. As long as all the magic DNS stuff is setup correctly, I can access all my internal services by name and it just works.

path: 0 13100709, hotness: undefined, score: 4, children: 0
blackstrat 3 points 2 years ago

I can't use VPN on my work PC so I have some services open on sub domains that aren't in my DNS. Follow some basic rules and it's fine. My phone is always connected to my Wireguard running on Opnsense. It's simple, fully self hosted and works great.

path: 0 13109957, hotness: undefined, score: 3, children: 0
Agility0971 2 points 2 years ago

Im using tailscale and have all my devices connected through it. Im not exposung any services in particular, just handy to be able to ssh around. Its always on and i did not notice huge power loss on my phone

path: 0 13101207, hotness: undefined, score: 2, children: 0
EncryptKeeper 1 point 2 years ago

If you have an iPhone, it’s a pain over Tailscale because Tailscale frequently likes to disconnect for various reasons and this isn’t something Tailscale can fix, it’s something with the way Apple manages background processes.

If you’d like an alternative, you can host your services directly to the internet via a reverse proxy like Caddy or Nginx, and then use mTLS to secure that access with a certificate you load only onto your devices.

path: 0 13133940, hotness: undefined, score: 1, children: 0
irotsoma 1 point 2 years ago

Depends on how secure the application and the security you use in front of the application such as reverse proxies, load balancers, etc. If you are exposing a web application with no SSL, no two factor with, or something in a beta state or if you can't trust your ISP not to create man-in-the-middle attacks for advertising and collecting information to sell which also likely introduces security vulnerabilities, then that could be a problem and a VPN or similar might be a big help.

path: 0 13109584, hotness: undefined, score: 1, children: 0
InverseParallax 1 point 2 years ago

Not much, I have services that run both externally and only over wg.

Only issue with wg is sometimes I have to shut it off for things like multicastdns, or otherwise that try to look around the network or wifi.

path: 0 13101182, hotness: undefined, score: 1, children: 0
selfhosted
selfhosted

@lemmy.world

login for more options
62939
6794
5617

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

go to feed...