rethink-app icon indicating copy to clipboard operation
rethink-app copied to clipboard

Tasker: WireGuard Automation

Open Docga1835 opened this issue 2 months ago • 3 comments

I use MacroDroid (similar to Tasker) to automate my VPNs. I have been able to get it to start and shutdown Rethink correctly. But I need to start and stop the Wireguard based on criteria other than SSID. For instance, I need my VPN to start when I open Thunderbird to write an email and if I open a private tab in my browser. Additionally, having this functionality would allow me to make a quick settings tile that will toggle just the VPN, not start/stop the entire app.

Additionally, one thing I miss from OpenVPN before switching to Wireguard was the ability to randomize the server endpoints in the config file. I know this is not possible with the Wireguard config, but adding this capability to the app would be really nice. Other than that, this is something I would be able to do with MacroDroid/Tasker anyways. Keep in mind, both OpenVPN and Wireguard apps can start/stop a VPN by specifying the name of the VPN in an intent extra from Tasker.

Docga1835 avatar Oct 31 '25 19:10 Docga1835

Additionally, one thing I miss from OpenVPN before switching to Wireguard was the ability to randomize the server endpoints in the config file

Similar?

  • #1683

ignoramous avatar Nov 01 '25 01:11 ignoramous

I am interested in being able to very quickly enable a vpn in Rethink, either:

  • via automation (e.g., Tasker, Home Assistant)
  • manually via a widget or by surfacing toggles in the Rethink home screen.

Not sure if these could all be tackled in the same issue or should be split up.

holocronweaver avatar Nov 09 '25 21:11 holocronweaver

I very much wish for a quick settings tile for this purpose and/or the ability to send intents from MacroDroid/Tasker to get this accomplished. Previously, it was recommended to split tunnel specific apps, such as my email app, into a specific vpn. However, recently I have learned that my email provider refuses to sync with any of my Wireguard profiles. I can send an email with it on however. So in this case, split tunneling is not an effective solution. Previously I automated my OpenVPN by sending an intent when a specific id was detected on screen (I used the email send button for this) and turned off the VPN when the app was closed.

Docga1835 avatar Nov 10 '25 03:11 Docga1835