Hi, I am trying to mimic what I can do on the windows and linux OpenVPN client where I can control the VPN connection via script. I have found a script I can use to connect to an existing VPN connection, however I want to be able to supply a configuration file and connect to it with authentication from an external app without any interaction from the user on Tunnelblick.
Currently on the Windows OpenVPN client for instance I can temporarily write the username/password to a file, pass the configuration file to the executable via a single command and it will read the credentials and connect then I can safely delete the file. How can I go about mimicking this setup using Tunnelblick?
Currently I'm using the following script to at least connect however I need to automate the credentials as well as the user won't know what their credentials actually are.
tell application "Tunnelblick"
connect "TUNNEL1"
get state of first configuration where name = "TUNNEL1"
repeat until result = "CONNECTED"
delay 1
get state of first configuration where name = "TUNNEL1"
end repeat
end tell
Thanks