Hi there,
i want to enroll multiple android devices with openvpn and would like to automate the configuration of the openVPN client app.
I found the possibility to connect/disconnet the client app (see below) and would like a similar skript for configurating the app using a .ovpn-File. Is there a similar command which could be used for this?
Connect Script
sendintent -a "intent:#Intent;action=net.openvpn.openvpn.CONNECT;component=net.openvpn.openvpn/net.openvpn.unified.MainActivity;B.net.openvpn.openvpn.AUTOCONNECT=true;S.net.openvpn.openvpn.AUTOSTART_PROFILE_ID="PUT_YOUR_PROFILE_ID_HERE";end"
Thanks in advance!
Automatic config through script ?
-
- OpenVpn Newbie
- Posts: 1
- Joined: Mon Oct 09, 2023 7:58 am
- openvpn_inc
- OpenVPN Inc.
- Posts: 1333
- Joined: Tue Feb 16, 2021 10:41 am
Re: Automatic config through script ?
Hello,
I am not aware of a totally automatic way but you can just have the user open the .ovpn file and Connect should pop up and offer to import it.
On OpenVPN Access Server we even can generate token URLs that can be used one-time to trigger Connect to do an import of a profile.
Kind regards,
Johan
I am not aware of a totally automatic way but you can just have the user open the .ovpn file and Connect should pop up and offer to import it.
On OpenVPN Access Server we even can generate token URLs that can be used one-time to trigger Connect to do an import of a profile.
Kind regards,
Johan
OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support