by Razvan Constantin
Version 1 (February 15, 2024)
Download (308 downloads)
Features
1. Checks if wireguard tunnel is actually working and retries if not. Useful with wireguard servers behind dynamic IP using dynamic DNS. If the IP changes, the tunnel will get stuck, requiring manual deactivate/activate.
2. Disables the tunnel if on specific SSID.
3. Enables the tunnel is not on specific SSID.
Setup
1. Edit block 1 and set your SSID. Leave empty if you don't need feature 2.
2. Edit blocks 2 and 3 and set your tunnel name.
3. Edit block 5 and input an IP that is only reachable through the tunnel, like the router's private IP. Wireguard must be able to get an icmp reply from the IP.
4. Edit delays in blocks 9, 10 and 13 to suit your needs. In my testing, 60 seconds is fine. Lower it for faster reaction time, but higher battery usage.
5. Disable logging when done testing.
6. In Wireguard client settings, check "Allow remote control apps".
7. Disable app battery usage for Wireguard as well as for Automate.
8. Disable "Pause app activity if unused" for Wireguard and Automate.
9. Make sure to set the permission for Automate app "control WireGuard tunnels" to on, or else it won't be able to activate/deactivate the tunnel.
Tested with Android 13 and 14.
5 stars | 1 | |
4 stars | 0 | |
3 stars | 0 | |
2 stars | 0 | |
1 star | 0 | |
Reports | 0 |
Rate and review within the app in the Community section.