Page 1 of 1
Need to setup client --connect option Windows 2003
Posted: Wed Jun 20, 2012 3:30 pm
by rniziak
All,
I have a Windows 2003 R2 client that needs to auto-connect with no user intervention on reboot...
I have the client.ovpn file in the config directory and have the openvpn connect service
starting as a service.. I cannot find the correct registry change in order to have
the service start with the --connect option..
Regards,
RJN.
Re: Need to setup client --connect option Windows 2003
Posted: Thu Jun 21, 2012 9:01 am
by maikcat
if you set openvpn service to autostart,it simply tries to
start openvpn using config files found in program files\openvpn\config directory.
your win installation uses 32bit or 64bit OS?
can you post the contents of your .ovpn file?
Michael.
Re: Need to setup client --connect option Windows 2003
Posted: Thu Jun 21, 2012 2:20 pm
by rniziak
This is the directory structure I have... C:\Program Files\OpenVPN Technologies\OpenVPN Client
Should I be using a different client ??
THX,
RJN
Re: Need to setup client --connect option Windows 2003
Posted: Thu Jun 21, 2012 2:37 pm
by janjust
that's the non-community version of the client and should be used only if you use OpenVPN Access Server; for all other purposes try the community version:
http://swupdate.openvpn.org/community/r ... nstall.exe
Re: Need to setup client --connect option Windows 2003
Posted: Thu Jun 21, 2012 3:32 pm
by rniziak
I installed that version, copied my client.ovpn file into the config directory, configured it as a service, started the vpngui manually and logged in and got connected.. from that poing the system should be able to reboot on re-connect automatically .. correct?? or am I missing something?? It still will not connect on bootup..
In the status box, I get a "NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables" message
Re: Need to setup client --connect option Windows 2003
Posted: Fri Jun 22, 2012 8:43 am
by janjust
the openvpn service will start all configuration files (*.ovpn) found in the directory
(for 64bit:
Code: Select all
c:\program files (x86)\openvpn\config
disconnect the VPN , stop the gui, then do a 'net start openvpnservice' - is the VPN active after that? if so, configure this service to be started at system startup time.