Commit 07a87b

2025-04-22 12:12:22 Samuli Seppänen: More updates to Windows guide
Pages/Easy Windows Guide.md ..
@@ 121,6 121,9 @@
```
### Server Config File
+
+ Server configurations should go to *C:\Program Files\OpenVPN\config-auto* if you wish run OpenVPN as a system service. If you wish to run OpenVPN server on-demand with OpenVPN GUI or from a terminal then place the configuration files should go to *C:\Program Files\OpenVPN\config*. Make sure the config file uses correct paths for the certificates and keys.
+
1. Copy the sample server configuration file to the easy-rsa folder:
```
copy "C:\Program Files\OpenVPN\sample-config\server.ovpn" "C:\Program Files\OpenVPN\easy-rsa\keys\server.ovpn"
@@ 151,7 154,8 @@
4. Save and close
### Client Config Files
- This is similar to the server configuration
+
+ Client configurations should usually go to *C:\Program Files\OpenVPN\config*. If you want, you can run client configurations as system services as well, in which case put them to *config-auto* directory instead. Also make sure the config file uses correct paths for the certificates and keys. Client configurations are similar to server configurations:
1. Copy the sample server configuration file to the easy-rsa folder with client's Common Name as the file name (each client will have a different file name):
```
@@ 184,33 188,18 @@
5. Save and close
- ## Copying the Server and Client Files to Their Appropriate Directories
+ ## Starting OpenVPN
- 1. Copy these files from C:\Program Files\OpenVPN\easy-rsa\keys\ to C:\Program Files\OpenVPN\config\ on the server:
- ```
- 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\ " ca.crt ta.key dh2048.pem server.crt server.key server.ovpn
- ```
+ On the server we recommend running OpenVPN as a system service:
- 2. Copy these files from C:\Program Files\OpenVPN\easy-rsa\keys\ on the server to C:\Program Files\OpenVPN\config\ on each client (mike-laptop, in this example):
- ```
- ca.crt
- ta.key
- mike-laptop.crt
- mike-laptop.key
- mike-laptop.ovpn
- ```
+ ```
+ Set-Service -Name OpenVPNService -StartupType automatic
+ Start-Service OpenVPNService
+ ```
- ## Starting OpenVPN
+ On clients you may want to use OpenVPN GUI instead:
- 1. On both client and server, run OpenVPN from:
+ 1. On client run OpenVPN GUI from:
```
Start Menu -> All Programs -> OpenVPN -> OpenVPN GUI
```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9