Changes between Version 3 and Version 4 of Easy_Windows_Guide


Ignore:
Timestamp:
10/26/10 18:43:01 (13 years ago)
Author:
eliyak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Easy_Windows_Guide

    v3 v4  
     1= Easy Windows Guide =
     2
    13This 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 [http://www.openvpn.net/index.php/open-source/documentation/howto.html HOWTO page].
    24
     
    79== Create Certificates and Keys ==
    810
     11=== Preperatory steps ===
     12
    9131. Navigate to the C:\Program Files\OpenVPN\easy-rsa folder in the command prompt:
    1014 a. Press Windows Key + R
     
    1317cmd.exe
    1418}}}
    15  c. To navigate to the correct folder:
     19 c. Navigate to the correct folder:
    1620{{{
    1721cd "C:\Program Files\OpenVPN\easy-rsa"
    1822}}}
    1923
    20 2. To initialize the OpenVPN configuration:
     242. Initialize the OpenVPN configuration:
    2125{{{
    2226init-config
    2327}}}
    2428 * NOTE: Only run init-config once, during installation.
    25 3. To open the vars.bat file in a text editor:
     29
     303. Open the vars.bat file in a text editor:
    2631{{{
    2732notepad vars.bat
    2833}}}
     34
    29354. Edit the following lines in vars.bat, replacing "US", "CA," etc. with your company's information:
    3036{{{
     
    3541set KEY_EMAIL=mail@host.domain
    3642}}}
     43
    37445. Save the file and exit notepad.
    3845
     466. Run the following commands:
     47{{{
     48vars
     49}}}
     50{{{
     51clean-all
     52}}}
     53
     54=== Build your certificates and keys ===
     55
     561. The certificate authority (CA) certificate and key:
     57{{{
     58build-ca
     59}}}
     60 * When prompted, enter your country, etc. These will have default values, which appear in brackets. For your "Common Name," a good choice is to pick a name to identify your company's Certificate Authority. For example, "OpenVPN-CA":
     61{{{
     62Country Name (2 letter code) [US]:
     63State or Province Name (full name) [CA]:
     64Locality Name (eg, city) [SanFrancisco]:
     65Organization Name (eg, company) [OpenVPN]:
     66Organizational Unit Name (eg, section) []:
     67Common Name (eg, your name or your server's hostname) []:OpenVPN-CA
     68Email Address [mail@host.domain]:
     69}}}
     70
     712. The server certificate and key:
     72{{{
     73build-key-server server
     74}}}
     75 * When prompted, enter the "Common Name" as "server"
     76 * When prompted to sign the certificate, enter "y"
     77 * When prompted to commit, enter "y"
     78
     793. Client certificates and keys:
     80
     81 a. For each client, choose a name to identify that computer, such as "mike-laptop" in this example.
     82{{{
     83build-key mike-laptop
     84}}}
     85  * When prompted, enter the "Common Name" as the name you have chosen (e.g. "mike-laptop")
     86 b. Repeat this step for each client computer that will connect to the VPN.
     87
     884. Generate Diffie Hellman parameters
     89 a.
     90{{{
     91build-dh
     92}}}
     93
     94== Configuration Files ==
     95
     961. Find the sample configuration files:
     97{{{
     98Start Menu -> All Programs -> OpenVPN -> OpenVPN Sample Configuration Files
     99}}}
    39100
    40101== Further Considerations / Troubleshoting ==