Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

en:support:internet:win:openvpn [18.06.2020] (aktuell)
Zeile 1: Zeile 1:
 +====== OpenVPN for Windows ======
  
 +==== Setup ====
 +
 +Under Windows certain modifications on server side are necessary to support OpenVPN. Due to this the configuration differs from the Mac/​Linux/​Unix version (Port 1195 instead 1194).
 +
 +First you need to set up {{fa>​external-link}} [[http://​www.openvpn.net/​index.php/​open-source/​downloads.html|OpenVPN]].
 +
 +The following two files have to be downloaded (**right click** -> **save as**)
 +
 +  * <php> echo file_link_generator("​login.ovpn",​ ""​);​ </​php> ​
 +  * <php> echo file_link_generator("​ca.crt",​ ""​);​ </​php>​
 +
 +Save the files on your desktop
 +
 +<php> echo image_link_generator("​win_openvpn_save_as_desktop.png",​ 480); </​php>​
 +
 +\\
 +Copy these two files into the OpenVPN config folder
 +
 +<php> echo image_link_generator("​win_openvpn_copy_files_2files.png",​ 250); </​php>​
 +
 +\\
 +Open the file explorer with administrator privileges and insert the two files into  **Program Files/​OpenVPN/​config**
 +
 +<php> echo image_link_generator("​win_openvpn_insert_into_config.png",​ 550); </​php>​
 +
 +\\
 +This folder now contains the following files
 +
 +<php> echo image_link_generator("​win_openvpn_config_folder_2files.png",​ 300); </​php>​
 +
 +\\
 +{{fa>​exclamation-circle}} **Open the OpenVPN GUI as administrator. If the program is started without administrator privileges, a connection will be established but you will not be able to access the Internet**
 +
 +<php> echo image_link_generator("​win_openvpn_start_openvpn_admin.png",​ 300); </​php>​
 +
 +\\
 +Confirm the following safety warning with **Yes**
 +
 +<php> echo image_link_generator("​win_openvpn_start_yes.png",​ 350); </​php>​
 +
 +\\
 +**Right click** on the OpenVPN symbol in the system tray, then **connect**
 +
 +<php> echo image_link_generator("​win_openvpn_click_connect.png",​ 350); </​php>​
 +
 +\\
 +OpenVPN will ask for your user ID and password. Be sure that there are no white spaces before or after your user ID or password (e.g. from copying from e-mail)
 +
 +<php> echo image_link_generator("​win_openvpn_gui_login.png",​ 500); </​php>​
 +
 +\\
 +Click **Ok** and the Internet connection will be established
 +
 +{{fa>​exclamation-circle}} **Always start the OpenVPN GUI as administrator. If the program is started without administrator privileges, a connection will be established but you will not be able to access the Internet.**
 +
 +\\
 +==== Optional: Login with password file ====
 +
 +You can use a password file with your user ID and password stored for login. If you want to login using your stored credentials,​ you have to modify the OpenVPN configuration.
 +
 +Open the  **login--xx.ovpn** configuration file by **right click** and **open with**
 +
 +<php> echo image_link_generator("​win_openvpn_open_config.png",​ 300); </​php>​
 +
 +\\
 +Use **Editor** to open the file
 +
 +<php> echo image_link_generator("​win_openvpn_open_notepad.png",​ 300); </​php>​
 +
 +\\
 +Add a line in the configuration file with content: **auth-user-pass password.txt** (see screenshot)
 +
 +<php> echo image_link_generator("​win_openvpn_edit_config_passwd.png",​ 350); </​php>​
 +
 +\\
 +Now create the **password.txt** file. **Right click** on a free spot on your desktop
 +
 +<php> echo image_link_generator("​win_openvpn_create_passwd_file.png",​ 380); </​php>​
 +
 +\\
 +Insert your user ID (into first line) and your password (into second line) into the empty file. Save this file as **password.txt**
 +
 +<php> echo image_link_generator("​win_openvpn_passwd_input.png",​ 380); </​php>​
 +
 +\\
 +Now copy the modified files ***.ovpn**, **ca-*.crt** und **password.txt** into the OpenVPN config folder
 +
 +<php> echo image_link_generator("​win_openvpn_copy_files.png",​ 250); </​php>​
 +
 +\\
 +Open the file explorer with administrator privileges and insert these files into  **Program Files/​OpenVPN/​config**
 +
 +<php> echo image_link_generator("​win_openvpn_insert_into_config.png",​ 550); </​php>​
 +
 +\\
 +The folder should now contain the following files
 +
 +<php> echo image_link_generator("​win_openvpn_config_folder.png",​ 300); </​php>​
 +
 +\\
 +Now you can start the OpenVPN GUI (see above) and connect to the Internet. OpenVPN will not ask for your account credentials any longer.
 +
 +{{fa>​exclamation-circle}} **Always run the OpenVPN GUI as administrator! If the program is started without administrator privileges, a connection will be established but you will not be able to access the Internet.**