by Gene Liang
Version 1 (January 25, 2024)
Download (46 downloads)
Best Deals fork
These are instructions for setting up automation to automatically enable and disable a WireGuard VPN connection depending on whether the device is pingable. To use this method, the user must:
1- in Automate> Enable "Control Wireguard Tunnel" settings
2- In Wireguard, make sure the checkbox is checked so that other apps can control tunnels
3- Change to your local host or device
4- Use termux or any similar app to tracepath local host or device to avoid trigger not functioning. Set the number of hops before it reaches the local host or device under Ping trigger maximum hops.
5- Change the name of the Wireguard tunnel in the UP and DOWN blocks in your Wireguard VPN.
6- Change to your desire app