OpenVPN Macro

Dimlos

Well-known member
For the OpenVpn Tasker Plugin, you use OpenVpn for Android, I could not get it to work.
You didn't change the content of the intent, did you? The only thing you need to change is the local variables.
Is OpenVPN importing the .ovpn or is it downloaded from a URL? That will change the intent.
 

dough29

New member
Hello, I created a macro for OpenVPN connect + disconnect using infos available here : https://openvpn.net/faq/how-do-i-use-tasker-with-openvpn-connect-for-android/

Connect intent : you have to copy the profile id from OpenVPN app first
  • Target: Activity
  • Action: net.openvpn.openvpn.CONNECT
  • Package: net.openvpn.openvpn
  • Class: net.openvpn.unified.MainActivity
  • Extra 1: net.openvpn.openvpn.AUTOSTART_PROFILE_ID with value '<copy profile ID from OpenVPN app>' (mind the quotes ! ex. type '123456' )
  • Extra 2: net.openvpn.openvpn.AUTOCONNECT with value true

Disconnect intent
  • Target: Activity
  • Action: net.openvpn.openvpn.DISCONNECT
  • Package: net.openvpn.openvpn
  • Class: net.openvpn.unified.MainActivity
  • Extra: net.openvpn.openvpn.STOP with value true
 
Top