Difference between revisions of "OpenVPN Startup"

From BTGuard Wiki
Jump to: navigation, search
Line 7: Line 7:
 
  <div class="right">
 
  <div class="right">
 
   <p>
 
   <p>
== How To Run and autoconnect OpenVPN GUI when windows starts ==
+
== How To Run and AutoConnect OpenVPN GUI when Windows Starts ==
 
<br/>
 
<br/>
 +
Prerequisite:
 +
- Your password must already be saved using [[Save_Password_in_OpenVPN|this method]]
 +
- Sometimes UAC (User Account Control) must be disabled
 
   </p>
 
   </p>
 
  </div>
 
  </div>

Revision as of 11:44, 29 October 2013

openvpn_start_1.png

How To Run and AutoConnect OpenVPN GUI when Windows Starts


Prerequisite: - Your password must already be saved using this method - Sometimes UAC (User Account Control) must be disabled


openvpn_start_2.png



openvpn_start_3.png



openvpn_start_4.png



openvpn_start_5.png



openvpn_start_6.png



openvpn_start_7.png








"C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --connect "BTGuard (Fastest).ovpn"



Please follow these instructions to have OpenVPN automatically start and connect when you start your computer.

- Locate the OpenVPN GUI shortcut, then right click and hit Properties.

- Add this line in Target: --connect "vpn.btguard.ovpn"

So it looks like this:

Target: "C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --connect "vpn.btguard.ovpn"

Note that you need to replace "vpn.btguard.ovpn" with one of the filenames found in "C:\Program Files\OpenVPN\config" if you have made some changes in the config files or are using the CA or EU config files.

If you don't have administrator privileges yourself, you'll also need to click "Advanced" and enable the shortcut to run with administrator privileges. (REQUIRED FOR WINDOWS VISTA / 7 / 8).

Close the VPN if it's running and double-click your new shortcut to see if it works properly.

The VPN should connect automatically now.


- Move the shortcut to the Startup folder:

Right-click the Start button and choose "Explore".

Navigate to "Start Menu" -> "Programs" -> "Startup".