Difference between revisions of "OpenVPN Startup"

From BTGuard Wiki
Jump to: navigation, search
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
  <div class="wrapleft">    
 
  <div class="wrapleft">    
 
   <div class="left">
 
   <div class="left">
<span class="plainlinks">[https://btguard.com/images/openvpn_start_1.png https://btguard.com/images/openvpn_start_1.png]</span>  
+
<span class="plainlinks">[https://wiki.btguard.com/images/openvpn_start_1.png https://wiki.btguard.com/images/openvpn_start_1.png]</span>  
 
   </div>
 
   </div>
 
  </div>     
 
  </div>     
 
  <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:''' <br/>
 +
- Your password must already be saved using [[Save_Password_in_OpenVPN|this method]].<br/>
 +
<br/>
 +
1. Hit the Windows key and type in '''schedule''' to open the '''Task Scheduler'''. <br/>
 
   </p>
 
   </p>
 
  </div>
 
  </div>
Line 18: Line 22:
 
  <div class="wrapleft">    
 
  <div class="wrapleft">    
 
   <div class="left">
 
   <div class="left">
<span class="plainlinks">[https://btguard.com/images/openvpn_start_2.png https://btguard.com/images/openvpn_start_2.png]</span>  
+
<span class="plainlinks">[https://wiki.btguard.com/images/openvpn_start_2.png https://wiki.btguard.com/images/openvpn_start_2.png]</span>  
 
   </div>
 
   </div>
 
  </div>     
 
  </div>     
 
  <div class="right">
 
  <div class="right">
   <p>
+
   <p><br/>
 
+
2. Click on '''Action''' then '''Create Task...'''.
 
<br/>
 
<br/>
 
   </p>
 
   </p>
Line 34: Line 38:
 
  <div class="wrapleft">    
 
  <div class="wrapleft">    
 
   <div class="left">
 
   <div class="left">
<span class="plainlinks">[https://btguard.com/images/openvpn_start_3.png https://btguard.com/images/openvpn_start_3.png]</span>  
+
<span class="plainlinks">[https://wiki.btguard.com/images/openvpn_start_3.png https://wiki.btguard.com/images/openvpn_start_3.png]</span>  
 
   </div>
 
   </div>
 
  </div>     
 
  </div>     
 
  <div class="right">
 
  <div class="right">
   <p>
+
   <p><br/>
 
+
3. Give a name to the task and make sure to check '''Run with highest privileges'''.
 
<br/>
 
<br/>
 
   </p>
 
   </p>
Line 50: Line 54:
 
  <div class="wrapleft">    
 
  <div class="wrapleft">    
 
   <div class="left">
 
   <div class="left">
<span class="plainlinks">[https://btguard.com/images/openvpn_start_4.png https://btguard.com/images/openvpn_start_4.png]</span>  
+
<span class="plainlinks">[https://wiki.btguard.com/images/openvpn_start_4.png https://wiki.btguard.com/images/openvpn_start_4.png]</span>  
 
   </div>
 
   </div>
 
  </div>     
 
  </div>     
 
  <div class="right">
 
  <div class="right">
   <p>
+
   <p><br/>
 
+
4. Go to the '''Triggers''' tab and hit '''New...'''<br/><br/>
 +
5. Select Begin the task: '''At Log on'''.<br/><br/>
 +
5b. Checkmark '''Delay task for:''' and select '''30 seconds''' then hit '''OK'''.<br/>
 
<br/>
 
<br/>
 
   </p>
 
   </p>
Line 66: Line 72:
 
  <div class="wrapleft">    
 
  <div class="wrapleft">    
 
   <div class="left">
 
   <div class="left">
<span class="plainlinks">[https://btguard.com/images/openvpn_start_5.png https://btguard.com/images/openvpn_start_5.png]</span>  
+
<span class="plainlinks">[https://wiki.btguard.com/images/openvpn_start_5.png https://wiki.btguard.com/images/openvpn_start_5.png]</span>  
 
   </div>
 
   </div>
 
  </div>     
 
  </div>     
 
  <div class="right">
 
  <div class="right">
   <p>
+
   <p><br/>
 
+
6. Go to the '''Actions''' tab and hit '''New...'''.<br/><br/>
 +
7. Hit '''Browse...''' and Locate the '''openvpn-gui.exe''' file which should be in ''C:\Program Files\OpenVPN\bin\openvpn-gui.exe''.<br/><br/>
 +
8. Copy '''--connect "BTGuard (Fastest).ovpn"''' into the ''''Add arguments (optional):''' Field then hit '''OK'''.<br/><br/>
 
<br/>
 
<br/>
 +
Depending on your computer, the '''openvpn-gui.exe''' could be located at '''C:\Program Files (x86)\OpenVPN\bin\openvpn-gui.exe'''<br/>
 +
Please change the links accordingly. <br/>
 +
<br/>
 +
''Note that you need to replace '''"BTGuard (Fastest).ovpn"''' with one of the file names 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.''
 
   </p>
 
   </p>
 
  </div>
 
  </div>
Line 82: Line 94:
 
  <div class="wrapleft">    
 
  <div class="wrapleft">    
 
   <div class="left">
 
   <div class="left">
<span class="plainlinks">[https://btguard.com/images/openvpn_start_6.png https://btguard.com/images/openvpn_start_6.png]</span>  
+
<span class="plainlinks">[https://wiki.btguard.com/images/openvpn_start_6.png https://wiki.btguard.com/images/openvpn_start_6.png]</span>  
 
   </div>
 
   </div>
 
  </div>     
 
  </div>     
 
  <div class="right">
 
  <div class="right">
   <p>
+
   <p><br/>
 
+
9. Go to the '''Conditions''' tab and make sure all settings are as shown on the left.
 
<br/>
 
<br/>
 
   </p>
 
   </p>
Line 98: Line 110:
 
  <div class="wrapleft">    
 
  <div class="wrapleft">    
 
   <div class="left">
 
   <div class="left">
<span class="plainlinks">[https://btguard.com/images/openvpn_start_7.png https://btguard.com/images/openvpn_start_7.png]</span>  
+
<span class="plainlinks">[https://wiki.btguard.com/images/openvpn_start_7.png https://wiki.btguard.com/images/openvpn_start_7.png]</span>  
 
   </div>
 
   </div>
 
  </div>     
 
  </div>     
 
  <div class="right">
 
  <div class="right">
   <p>
+
   <p><br/>
 
+
10. Go to the '''Settings''' tab and make sure all settings are as shown on the left.<br/><br/>
 +
11. Hit '''OK''' and you're done. <br/><br/>
 +
<br/>
 +
Restart your computer and OpenVPN GUI should open and automatically connect to the server you selected. <br/>
 
<br/>
 
<br/>
 
   </p>
 
   </p>
 
  </div>
 
  </div>
 
</div>
 
</div>
 
 
 
 
 
 
 
 
 
 
 
 
"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".
 

Latest revision as of 12:04, 1 July 2015

openvpn_start_1.png

How To Run and AutoConnect OpenVPN GUI when Windows Starts


Prerequisite:
- Your password must already be saved using this method.

1. Hit the Windows key and type in schedule to open the Task Scheduler.


openvpn_start_2.png


2. Click on Action then Create Task....


openvpn_start_3.png


3. Give a name to the task and make sure to check Run with highest privileges.


openvpn_start_4.png


4. Go to the Triggers tab and hit New...

5. Select Begin the task: At Log on.

5b. Checkmark Delay task for: and select 30 seconds then hit OK.


openvpn_start_5.png


6. Go to the Actions tab and hit New....

7. Hit Browse... and Locate the openvpn-gui.exe file which should be in C:\Program Files\OpenVPN\bin\openvpn-gui.exe.

8. Copy --connect "BTGuard (Fastest).ovpn" into the 'Add arguments (optional): Field then hit OK.


Depending on your computer, the openvpn-gui.exe could be located at C:\Program Files (x86)\OpenVPN\bin\openvpn-gui.exe
Please change the links accordingly.

Note that you need to replace "BTGuard (Fastest).ovpn" with one of the file names 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.


openvpn_start_6.png


9. Go to the Conditions tab and make sure all settings are as shown on the left.


openvpn_start_7.png


10. Go to the Settings tab and make sure all settings are as shown on the left.

11. Hit OK and you're done.


Restart your computer and OpenVPN GUI should open and automatically connect to the server you selected.