Comment by caconym_
1 day ago
+1. I have Wireguard set up on all my mobile devices and configured to automatically start when connecting to any wifi that isn't mine, so I can take my devices anywhere and I'm still on my home LAN. It works seamlessly and flawlessly.
I self-host a lot of services, and without Wireguard (or equivalent), remote access just wouldn't be realistic.
How did you automate it to start on networks which are not yours?
This is like the only piece of the puzzle for me.
Set the AllowedIPs wireguard setting (and/or the route, if you can set that separately) to one larger than your home network (i.e., if your home network is 192.168.1.0/24, use 192.168.0.0/23). Then, block wireguard packets from the internal network on your router. Then the tunnel will always be running; it just won't be used when you're at home because there's a more specific route
But this will also break whenever there's any more specific route, no?
To answer my own question, looks like there's WG Tunnel[0] on android which does what I need.
[0]: https://play.google.com/store/apps/details?id=com.zaneschepk...
For the Tailscale app on Apple platforms it’s called VPN On Demand. Here's how you can configure it.
https://tailscale.com/kb/1291/ios-vpn-on-demand
Tailscale is built on wireguard but it is not just wireguard. I want a wireguard only solution.
Does it still eat your battery? It used to, and it was so annoying I moved to Nebula
All my regular mobile devices are Apple, so whoever said that has it right. I also have a Linux laptop but NetworkManager support for Wireguard was broken last I checked, and at the time I didn't care enough to set it up by hand.
This is a built-in feature of the Wireguard app on iOS, not sure about other platforms.
And specifically it's based on VPN On Demand. https://developer.apple.com/documentation/networkextension/v...
I have wg into home and wg into an aws instance. All my mobile and laptops can reach them.
On Android devices? If so: how? :)
I don't use it with wireguard, but Zerotier works just fine on Android.
As does tailscale!
3 replies →