I had been using a VPN client from PIA but this was a bit flaky at times so reading up on how it all worked I see that it is based on OpenVPN
So a few days ago I downloaded OpenVPN 2.3.4 and installed it with the PIA ovpn files plus certs. Now I have a rock solid VPN.
I want to run a few commands during the OpenVPN connection process and I have read in the documents to use the "up" command in a config file. Now when it says config file I presume the ovpn file in the configs folder in Program Files\OpenVPN
I have placed an up command at the end of the file and then tried connecting to the VPN. The connection works great but I don't see a cmd window pop up to run the batch file.
I looked at the sample config files in the documentation but none show how the up command works or the batch file, so I am asking here is I have done cometing wrong or not.
my ovpn file is here and the up.bat batch file is located in the same configs folder as the ovpn file.
Code: Select all
client
dev tun
proto udp
remote ro.privateinternetaccess.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
tls-client
remote-cert-tls server
auth-user-pass
comp-lzo
verb 1
reneg-sec 0
auth-user-pass "c:\\program files\\openvpn\\config\\userpass.txt"
crl-verify crl.pem
up "up.bat"