wiki:Easy_Windows_Guide

Version 3 (modified by eliyak, 11 years ago) (diff)

--

This page will contain a no-frills guide to getting OpenVPN up and running on a Windows server and client(s). For a more detailed understanding of setting up OpenVPN and its advanced features, see the HOWTO page.

Download and Install OpenVPN

  1. Download the installer from here and run it.

Create Certificates and Keys

  1. Navigate to the C:\Program Files\OpenVPN\easy-rsa folder in the command prompt:
    1. Press Windows Key + R
    2. Type "cmd.exe" and press Enter.
      cmd.exe
      
    3. To navigate to the correct folder:
      cd "C:\Program Files\OpenVPN\easy-rsa"
      
  1. To initialize the OpenVPN configuration:
    init-config
    
    • NOTE: Only run init-config once, during installation.
  2. To open the vars.bat file in a text editor:
    notepad vars.bat
    
  3. Edit the following lines in vars.bat, replacing "US", "CA," etc. with your company's information:
    set KEY_COUNTRY=US
    set KEY_PROVINCE=CA
    set KEY_CITY=SanFrancisco
    set KEY_ORG=OpenVPN
    set KEY_EMAIL=mail@host.domain
    
  4. Save the file and exit notepad.

Further Considerations / Troubleshoting

Your server will need to have a static IP or DNS to be accessible over the long term. One solution is to sign up for an account with DynDNS and install the DynDNS Updater on your server. This account will determine the static DNS of your server. (For example, "myserver.dyndns.org")