Author Topic: Is there any way to set OpenVPN auto connect when start up windows ?  (Read 26605 times)

Bashin

  • Guest
Is there any way to set OpenVPN auto connect when start up windows ? thanks

asellus

  • Guest
Re: Is there any way to set OpenVPN auto connect when start up windows ?
« Reply #1 on: April 09, 2008, 02:03:49 PM »
According to http://www.itsatechworld.com/2006/01/29/how-to-configure-openvpn/
you make a shortcut to the OpenVPN GUI, put it at the Startup meu, then append the --connect bolehvpn.ovpn to the Target field of that shortcut (of course assuming that your config file is named bolehvpn.ovpn).

Thus it may look like this:-

"C:\Program Files\OpenVPN\bin\openvpn-gui-1.0.3.exe" --connect bolehvpn.ovpn

Haven't tried it myself though, because I run Windows Vista in standard mode and OpenVPN needs to run in admin mode. If you use Windows XP in admin mode, it shopuld work properly.

Offline Reuben

  • Chief Doraemon
  • Administrator
  • Admiral
  • *****
  • Posts: 6878
Re: Is there any way to set OpenVPN auto connect when start up windows ?
« Reply #2 on: April 09, 2008, 02:22:21 PM »
There's also a way to make openvpn run as a service via services.msc

need to delete the other config u're not using tho.
*If you like my service/support, please consider posting a positive feedback here*<3



Co-Founder/Administrator

Bashin

  • Guest
Re: Is there any way to set OpenVPN auto connect when start up windows ?
« Reply #3 on: April 09, 2008, 03:00:16 PM »
According to http://www.itsatechworld.com/2006/01/29/how-to-configure-openvpn/
you make a shortcut to the OpenVPN GUI, put it at the Startup meu, then append the --connect bolehvpn.ovpn to the Target field of that shortcut (of course assuming that your config file is named bolehvpn.ovpn).

Thus it may look like this:-

"C:\Program Files\OpenVPN\bin\openvpn-gui-1.0.3.exe" --connect bolehvpn.ovpn

Haven't tried it myself though, because I run Windows Vista in standard mode and OpenVPN needs to run in admin mode. If you use Windows XP in admin mode, it shopuld work properly.
thanks for u guys... :D just wanna check by doing this,OpenVPN will auto log in to Bolehroute or BolehVPN...? Btw,i'm in XP admin mode.Btw,bro Erun can u explain in more detail on the method u are mention ? thanks again. :D



asellus

  • Guest
Re: Is there any way to set OpenVPN auto connect when start up windows ?
« Reply #4 on: April 09, 2008, 03:57:49 PM »
the ovpn file specified in the shortcut will be used. If you use bolehvpn.ovpn, it will connect to that. If you specify bolehroute.ovpn, it will use that one.

Bashin

  • Guest
Re: Is there any way to set OpenVPN auto connect when start up windows ?
« Reply #5 on: April 09, 2008, 07:45:12 PM »
the ovpn file specified in the shortcut will be used. If you use bolehvpn.ovpn, it will connect to that. If you specify bolehroute.ovpn, it will use that one.
thanks bro,i try ur method and is work for me.thanks a lot :D

jamielim

  • Guest
Re: Is there any way to set OpenVPN auto connect when start up windows ?
« Reply #6 on: April 25, 2008, 06:02:10 PM »
Yup, it works! Thanks a lot!