Control WireGuard with Macros

tja42

New member
Hello,

is it somehow possible to control WireGuard with macros?
I want it to automatically connect to my home when I leave my wifi and disconnect when I enter it.
I have this app installed:
 

dhj49er

Active member
I don't have wireguard app installed and hence not familiar with it.
I use a VPN that supports the wireguard protocol and can control this in macros using UI integration method.
I expect this method could be used on the wireguard app.
 

teemue

New member
You can't control WG directly (macrodroid does not ask for the permission to control WG and the permission is needed). Luckily there is a workaround: install this tool (Tasker app is not needed) and use it as a bridge to redirect intents to WireGuard. APK is found in app/release folder.
 

tja42

New member
Thanks. This seems to be exactly what I need.

Unfortunately. I does not work here. I granted permissions to your app, imported your macro, changed the tunnel name. But when I test it just nothing happens here.
 

teemue

New member
I'm not the dev :)

Try creating a simple macro with only 'send intent'- action. No need to use the macro from github.

And make sure you have enabled 'Allow remote control apps' in Wireguard's settings.
 
Top