Appendix: Consolidating the Logs in the Cloud Using OpenVPN : Configuring the Cloud Server : Configure the OpenVPN Server
  
Configure the OpenVPN Server
First, copy the certificates you have prepared (see Prepare the Server Certificates) to the OpenVPN server configuration folder. On the cloud computer, open a command prompt as an administrator, and enter the following commands:
cd "%ProgramFiles%\OpenVPN\easy-rsa\keys"
copy ca.crt "%ProgramFiles%\OpenVPN\config"
copy server.crt "%ProgramFiles%\OpenVPN\config"
copy server.key "%ProgramFiles%\OpenVPN\config"
copy dh2048.pem "%ProgramFiles%\OpenVPN\config"
Next, run the following commands to prepare the server configuration file:
cd "%ProgramFiles%\OpenVPN\sample-config"
copy server.ovpn "%ProgramFiles%\OpenVPN\config"
Now you need to edit the server configuration file, which is much easier to do with Notepad++. You could download and install Notepad++ from the site at ninite.com/notepadplusplus. Then, open the configuration file to edit:
cd "%ProgramFiles%\OpenVPN\config"
"%ProgramFiles%\Notepad++\notepad++.exe" server.ovpn
- or -
"%ProgramFiles(x86)%\Notepad++\notepad++.exe" server.ovpn
Edit the configuration file by setting the following parameter values:
local 0.0.0.0
port 80
proto tcp
;proto udp
Put a semicolon at the beginning of the line to disable this parameter.
ifconfig-pool-persist ipp.txt
;tls-auth ta.key 0
Put a semicolon at the beginning of the line to disable this parameter.
;explicit-exit-notify 1
Put a semicolon at the beginning of the line to disable this parameter.
Note that the subnet from which OpenVPN picks IP addresses is set by the server parameter:
server 10.8.0.0 255.255.255.0
With this parameter value, the OpenVPN server is assigned the IP address of 10.8.0.1, and the remaining IP addresses from this subnet can be assigned to the OpenVPN clients.
Finally, configure the OpenVPN server to start automatically when the system starts. Use the Services console (services.msc) to set the startup type of the service OpenVPNService to Automatic. Then, start that service.