The built-in "on-demand activation" is quite good. Can set it to specific SSIDs (white or blacklist) or cellular. I've it on for everything except my home SSID.
Edit: I'm talking about the iOS version, not sure what platform you're using.
No such luck on Android, you need to use tasker or similar. Really a nuisance but not a deal breaker. It would be dreamy to set up the client to not use specific SSIDs.
Re:WireGuard is in net-next
by forbiddenlake on Monday December 09, 2019 @10:51PM
(#21749437)
I want to point out that the intents on the official Wireguard Android app are not exposed, so I, not being rooted, can't use Tasker to automate it.
However, there are other Android apps that implement Wireguard that do expose their intents. I use Viscerion with Tasker quite happily.
Re:WireGuard is in net-next
by blueberry_47 on Monday December 09, 2019 @01:20PM
(#21744934)
What iOS client are you using? I am using the Wireguard one (the the twisty snake/dragon) and don't see any of these options. Is this stuff that is done in the config files? Sorry, all new to me.
It's in there! Scroll down to the "On-demand activation" section of the settings for your connection
Re:WireGuard is in net-next
by blueberry_47 on Monday December 09, 2019 @02:48PM
(#21745752)
There it is! Thank you!
Yep, this is what I do. It just doesn't connect when I'm connected to my home WiFi
On Android this can be easily achieved by Tasker.
Personally I have the luxury of running the VPN server at home, so I can just always leave it on.
Why does this allow you to allows leave it on?
Presumably minimal latency from phone on home wifi to server on home wifi. I actually have no idea if this is true, or how I'd evaluate it. Does anyone understand how the internet and wireguard works well enough to know if this is true?
That's what I was wondering. I've actually done this using OpenVPN (connected to my home VPN server while on home wifi), and it worked fine. Biggest issue was battery impact, but wireguard might be better in that regard?
Well since I connect to my home network anyway I can just leave it on at home and there's no difference in performance.
Thanks.