Need to setup client --connect option Windows 2003

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
rniziak
OpenVpn Newbie
Posts: 3
Joined: Wed Jun 20, 2012 3:25 pm

Need to setup client --connect option Windows 2003

Post by rniziak » Wed Jun 20, 2012 3:30 pm

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.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Need to setup client --connect option Windows 2003

Post by maikcat » Thu Jun 21, 2012 9:01 am

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

rniziak
OpenVpn Newbie
Posts: 3
Joined: Wed Jun 20, 2012 3:25 pm

Re: Need to setup client --connect option Windows 2003

Post by rniziak » Thu Jun 21, 2012 2:20 pm

This is the directory structure I have... C:\Program Files\OpenVPN Technologies\OpenVPN Client

Should I be using a different client ??

THX,

RJN

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Need to setup client --connect option Windows 2003

Post by janjust » Thu Jun 21, 2012 2:37 pm

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

rniziak
OpenVpn Newbie
Posts: 3
Joined: Wed Jun 20, 2012 3:25 pm

Re: Need to setup client --connect option Windows 2003

Post by rniziak » Thu Jun 21, 2012 3:32 pm

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

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Need to setup client --connect option Windows 2003

Post by janjust » Fri Jun 22, 2012 8:43 am

the openvpn service will start all configuration files (*.ovpn) found in the directory

Code: Select all

 c:\program files\openvpn\config
(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.

Post Reply