Toggle WireGuard based on home WiFi connection

by zilexa 0

Version 3 (June 5, 2022)

Download (3,218 downloads)

*VERIFIED June 5th, 2022* Enable WireGuard VPN tunnel when not connected to a specific WiFI SSID, and disable when reconnected to that WiFi. Adds a check for mobile network connection before connecting to tunnel.
Before using, install WireGuard app and add your client config via QR or file, set the desired name for that tunnel. Then in Automate, import this flow and 1) Automate>Settings>Privileges: enable "Control Wireguard tunnels" 2) Edit this flow: change the WiFi name to your home WiFi inside the WiFi SSID block 3) Change the Wireguard tunnel name in the UP and Down blocks.
Note the "ping" block is to verify mobile connection before tunnel goes up. Otherwise in some cases the tunnel goes up too early and you don't have working internet.

4.4 average rating from 14 reviews

5 stars
10
4 stars
2
3 stars
1
2 stars
0
1 star
0
Reports
1

Rate and review within the app in the Community section.