![openvpn config openvpn config](https://yqintl.alicdn.com/c7755a31bbadd612ef93f8719350c8d835b091c8.png)
# certicate has the correct key usage set. # Verify server certificate by checking that the http-proxy-retry # retry on connection failures # Try to preserve some state across restarts. # Downgrade privileges after initialization (non-Windows only) # on machines which are not permanently connected # Keep trying indefinitely to resolve the # The hostname/IP and port of the server.
#OPENVPN CONFIG WINDOWS#
# Windows needs the TAP-Win32 adapter name # the firewall for the TUN/TAP interface. # On most systems, the VPN will not function # Use the same setting as you are using on # will be pulling certain config file directives # Specify that we are a client and that we # On Windows, you might want to rename this # # clients, however each client should have # # This configuration can be used by multiple # Speed :25.877 MegaBytes/min.# Sample client-side OpenVPN 2.0 config file # Now, we can copy the following files on the server from C:\Program Files\OpenVPN\easy-rsa\keys\ to C:\Program Files\OpenVPN\config\ for each client that will be using the VPN (e.g., david-laptop in this example) -ca.crt -ta.key -david-laptop.crt -david-laptop.key -david-laptop.ovpn robocopy "C:\Program Files\OpenVPN\easy-rsa\keys\ " "C:\Program Files\OpenVPN\config\ " ca.crt ta.key dh2048.pem server.crt server.key server.ovpn - ROBOCOPY :: Robust File Copy for Windows - Started : Friday, Decem12:16:02 PM Source : C:\Program Files\OpenVPN\easy-rsa\keys\ Dest : C:\Program Files\OpenVPN\config\ Files : ca.crt ta.key dh2048.pem server.crt server.key server.ovpn Options : /DCOPY:DA /COPY:DAT /R:1000000 /W:30 - C:\Program Files\OpenVPN\easy-rsa\keys\ 100% New File 2482 ca.crt 100% New File 432 dh2048.pem 100% New File 10901 server.ovpn 100% New File 657 ta.key - Total Copied Skipped Mismatch FAILED Extras Dirs : 1 0 1 0 0 0 Files : 4 4 0 0 0 0 Bytes :14.1 k 14.1 k 0 0 0 Times : 0:00:00 0:00:00 0:00:00 0:00:00 Speed :452250 Bytes/sec.Source : C:\Program Files\OpenVPN\easy-rsa\keys\ Dest : C:\Program Files\OpenVPN\config\ Files : ca.crt dh2048.pem server.crt Now we can copy the following files on the client from C:\Program Files\OpenVPN\easy-rsa\keys\ to C:\Program Files\OpenVPN\config\ on the server using the robocopy command: -ca.crt -ta.key -dh2048.pem -server.crt -server.key -server.ovpn robocopy "C:\Program Files\OpenVPN\easy-rsa\keys\ " "C:\Program Files\OpenVPN\config\"Ĭa.crt ta.key dh2048.pem server.crt server.key server.ovpn - ROBOCOPY :: Robust File Copy for Windows - Started : Friday, Decem12:16:02 PM.Now, locate the following lines within the file: ca ca.crt cert server.crt key server.key dh dh2048.pemĪnd edit them as follows: ca "C:\\Program Files\OpenVPN\config\ca.crt" cert "C:\\Program Files\OpenVPN\config\server.crt" key "C:\\Program Files\OpenVPN\config\server.key" dh "C:\\Program Files\OpenVPN\config\dh2048.pem".notepad "C:\Program Files\OpenVPN\easy-rsa\keys\server.ovpn" Next, we will need to edit the server.ovpn file.Here is the command and its output: copy "C:\Program Files\OpenVPN\sample-config\server.ovpn" "C:\Program Files\OpenVPN\easy-rsa\keys\server.ovpn" C:\Program Files\OpenVPN\easy-rsa "C:\Program files\OpenVPN\bin\openvpn.exe" -genkey -secret "C:\Program Files\OpenVPN\easy-rsa\keys\ta.key" C:\Program Files\OpenVPN\easy-rsa copy "C:\Program Files\OpenVPN\sample-config\server.ovpn" "C:\Program Files\OpenVPN\easy-rsa\keys\server.ovpn" 1 file(s) copied. Let’s begin by copying the sample “ server configuration” file over to the easy-rsa folder.
![openvpn config openvpn config](http://docs.endian.com/archive/2.1/images/OpenVPN01.png)
Now, locate the following lines within the file: ca - ca.crt cert - server.crt key - server.key dh - dh2048.pem And edit them as follows: ca "C:\\Program Files\\OpenVPN\config\ca.crt" cert "C:\\Program Files\OpenVPN\config\server.crt" key "C:\\Program Files\OpenVPN\config\server.key" dh "C:\\Program Files\OpenVPN\config\dh2048.pem".notepad "C:\Program Files\OpenVPN\easy-rsa\keys\server.ovpn Here is the command and its output: copy "C:\Program Files\OpenVPN\sample-config\server.ovpn" "C:\Program Files\OpenVPN\easy-rsa\keys\server.ovpn" copy "C:\Program Files\OpenVPN\easy-rsa" "C:\Program files\OpenVPN\bin\openvpn.exe" -genkey -secret copy "C:\Program Files\OpenVPN\easy-rsa\keys\ta.key" "C:\Program Files\OpenVPN\easy-rsa" copy "C:\Program Files\OpenVPN\sample-config\server.ovpn" "C:\Program Files\OpenVPN\easy-rsa\keys\server.ovpn" 1 file(s) copied.