Changes

no edit summary
Line 10: Line 10:     
'''Prerequisites''':
 
'''Prerequisites''':
* A PC or Laptop running on Windows 7 or a later version
+
 
* The computer in question must have a '''[[Private_and_Public_IP_Addresses#Public_IP_address|Public IP address]]'''
+
*A PC or Laptop running on Windows 7 or a later version
* And an active Internet connection
+
*The computer in question must have a '''[[Private_and_Public_IP_Addresses#Public_IP_address|Public IP address]]'''
 +
*And an active Internet connection
 +
 
 
----
 
----
 
'''Objective''':
 
'''Objective''':
Line 24: Line 26:  
==Step 4: OpenVPN server configuration==
 
==Step 4: OpenVPN server configuration==
   −
In this section we'l be discussing how to configure an OpenVPN Tunnel (TUN) server that uses:
+
In this section we'll be discussing how to configure an OpenVPN Tunnel (TUN) server that uses:
* The UDP protocol
+
 
* TLS authentication
+
*The UDP protocol
 +
*TLS authentication
    
As a template, we'll be using the sample configuration file that comes along with the OpenVPN installation, but we'll be adding with some minor changes to it. You can find it in the ''OpenVPN'' installation directory, ''sample-config'' folder (default: ''C:\Program Files\OpenVPN\sample-config'') under the name '''''server.ovpn'''''.
 
As a template, we'll be using the sample configuration file that comes along with the OpenVPN installation, but we'll be adding with some minor changes to it. You can find it in the ''OpenVPN'' installation directory, ''sample-config'' folder (default: ''C:\Program Files\OpenVPN\sample-config'') under the name '''''server.ovpn'''''.
Line 60: Line 63:  
       <li>Added ''client-config-dir'' option for possible TLS client configuration</li>
 
       <li>Added ''client-config-dir'' option for possible TLS client configuration</li>
 
       <li>Changed the ''ifconfig-pool-persist'' file path</li>
 
       <li>Changed the ''ifconfig-pool-persist'' file path</li>
       <li>Changes to the certificate and key file paths</li>
+
       <li>Changes to the certificate and key file paths</li><li>Note: cipher AES-256-CBC is deprecated in v.2.5. Change CBC to GCM
    </ul>
+
</li><li>You can harden (add security) to the VPN by creating a ta.key (''openvpn--genkey --secret keys/ta.key'') file on the server, placing it in the config folder and copying it to the config folder of all client machines.
  </li>
+
</li><li>Edit the server.ovpn file found in the OpenVPN/sample-config folder. Lines that begin with # or ; will be ignored.) Feel free to change it however you want.</li></ul>
  <li>You can download this particular file from '''[[Media:Laptop_server.ovpn|here]]'''. Feel free to change it however you want.</li>
+
  </li></ul>
</ul>
      
==Step 5: configuring clients==
 
==Step 5: configuring clients==
   −
We've already generated certificates and keys for the clients in this guide. The next step is to create a configuration file for the clients. For this purpose we have a separate article: '''[[OpenVPN client on Windows]]'''.
+
Install OpenVPN on all client machines, but omit Steps 2, 3 and 4 above. Just copy the ca.crt , client.crt and client.key files already created on the server machine in Step 4 above to the config folder of the relevant client machine.  
 +
 
 +
The next step is to create a configuration file for the clients. Edit the client.ovpn file found in the sample-config folder and save it.  Now open the separate article: '''[[OpenVPN client on Windows]],''' but note that only the latter part is relevant to this page. Begin at the line "• Save the file with an '''.ovpn''' extension."
   −
Since you already have the OpenVPN software installed and have generated the certificates and keys for the clients, you can skip to section 4 of that article by clicking '''[[OpenVPN_client_on_Windows#OpenVPN_client_configuration|here]]'''.
+
Note: The edited client.ovpn file can be copied to all the client machines unless specific changes need to be made.
    
==Step 6: launching the server==
 
==Step 6: launching the server==
Line 87: Line 91:  
==See also==
 
==See also==
   −
* [[OpenVPN client on Windows]]
+
*[[OpenVPN client on Windows]]
* [[OpenVPN configuration examples]]
+
*[[OpenVPN configuration examples]]
* [[OpenVPN traffic split]]
+
*[[OpenVPN traffic split]]
    
==External links==
 
==External links==
   −
* OpenVPN downloads: https://openvpn.net/index.php/open-source/downloads.html
+
*OpenVPN downloads: https://openvpn.net/index.php/open-source/downloads.html
* OpenVPN manual: https://openvpn.net/index.php/open-source/documentation/manuals.html
+
*OpenVPN manual: https://openvpn.net/index.php/open-source/documentation/manuals.html
* Notepad++ downloads: https://notepad-plus-plus.org/download/v7.5.8.html
+
*Notepad++ downloads: https://notepad-plus-plus.org/download/v7.5.8.html
 +
[[Category:Windows]]

Navigation menu