Changes between Version 3 and Version 4 of Easy_Windows_Guide
- Timestamp:
- 10/26/10 18:43:01 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Easy_Windows_Guide
v3 v4 1 = Easy Windows Guide = 2 1 3 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 [http://www.openvpn.net/index.php/open-source/documentation/howto.html HOWTO page]. 2 4 … … 7 9 == Create Certificates and Keys == 8 10 11 === Preperatory steps === 12 9 13 1. Navigate to the C:\Program Files\OpenVPN\easy-rsa folder in the command prompt: 10 14 a. Press Windows Key + R … … 13 17 cmd.exe 14 18 }}} 15 c. To navigate to the correct folder:19 c. Navigate to the correct folder: 16 20 {{{ 17 21 cd "C:\Program Files\OpenVPN\easy-rsa" 18 22 }}} 19 23 20 2. To initialize the OpenVPN configuration:24 2. Initialize the OpenVPN configuration: 21 25 {{{ 22 26 init-config 23 27 }}} 24 28 * NOTE: Only run init-config once, during installation. 25 3. To open the vars.bat file in a text editor: 29 30 3. Open the vars.bat file in a text editor: 26 31 {{{ 27 32 notepad vars.bat 28 33 }}} 34 29 35 4. Edit the following lines in vars.bat, replacing "US", "CA," etc. with your company's information: 30 36 {{{ … … 35 41 set KEY_EMAIL=mail@host.domain 36 42 }}} 43 37 44 5. Save the file and exit notepad. 38 45 46 6. Run the following commands: 47 {{{ 48 vars 49 }}} 50 {{{ 51 clean-all 52 }}} 53 54 === Build your certificates and keys === 55 56 1. The certificate authority (CA) certificate and key: 57 {{{ 58 build-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 {{{ 62 Country Name (2 letter code) [US]: 63 State or Province Name (full name) [CA]: 64 Locality Name (eg, city) [SanFrancisco]: 65 Organization Name (eg, company) [OpenVPN]: 66 Organizational Unit Name (eg, section) []: 67 Common Name (eg, your name or your server's hostname) []:OpenVPN-CA 68 Email Address [mail@host.domain]: 69 }}} 70 71 2. The server certificate and key: 72 {{{ 73 build-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 79 3. 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 {{{ 83 build-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 88 4. Generate Diffie Hellman parameters 89 a. 90 {{{ 91 build-dh 92 }}} 93 94 == Configuration Files == 95 96 1. Find the sample configuration files: 97 {{{ 98 Start Menu -> All Programs -> OpenVPN -> OpenVPN Sample Configuration Files 99 }}} 39 100 40 101 == Further Considerations / Troubleshoting ==