You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Privacy friendly way to turn on Wireguard depend on home/away scenario #1294
I was looking for a privacy friendly way to check if we are home or away from home so that we know if wireguard (and other things) should be on or off. Tasker integration is a big project but this simplify it to some extent and is what most people need.
The only information we propably get about network you connect is IP you get assigned, mask, gateway and DNS.
Because ssid/wifi name checking needs location service its a no no for most people.
Could we have a way to for example to treat a Wireguard tunel as "turned off" when DNS IP is specific IP, or IP you got assigned is a specific IP? This would not turn off Wireguard tunel like if you do it yourself, it would just make the tunel act as "turned off" if your system DNS IP is a specific IP.
Wireguard tunel "Test" is turned on -> Is ON in every network -> when a network have system DNS IP 192.168.5.12 than wireguard gets disabled but not turned off, its just skipped.
The official Wireguard app uses these intents which creates a custom permission. Then in this file, the intents are handled. Where needed, the tunnel name is specified as a parameter. I couldn't find anywhere that allows Tasker to detect the function named WireGuardSetTunnel that it uses to control WG, but as far as I can tell, that function is simply a wrapper for an intent broadcast. Tasker can directly perform such broadcasts as well.
... looks at a canary file on the local network before activating the WireGuard connection, and compares its content to a predefined value.
...
This would mean adding 2 settings: a local URL to check for, and a value to compare to the data returned by the URL .
I.e:
local URL: "http://192.168.0.1/canary"
expected value: "Lucy, I'm home !"
Activity
ignoramous commentedon Mar 18, 2024
A power user feature, this. We'll accept pull requests.
See also:
ignoramous commentedon Sep 18, 2024
A user writes,
ignoramous commentedon Sep 11, 2026
By @pmaziere in #2537.
ignoramous commentedon Oct 15, 2026
WireGuard automation with Intents has shipped in
v058.From the instructions in Configure -> Settings -> Automation:
pcause commentedon Oct 15, 2026
i am new to tasker. I imported the basic start wireguard but where in the asker interface do I put the wg_ids