Appendix: Consolidating the Logs in the Cloud Using OpenVPN : Configuring On-premises Servers : Configure the OpenVPN Client
  
Configure the OpenVPN Client
When preparing the client certificate (see Prepare the Client Certificate and IP Address), the files <computer name>.crt and <computer name>.key were created in the folder easy-rsa\keys on the cloud computer. Copy these two files along with the file ca.crt to the client’s configuration folder %ProgramFiles%\OpenVPN\config on the on-premises computer.
Next, on the on-premises computer, open a command prompt as an administrator, and enter the following commands to prepare the client configuration file:
cd "%ProgramFiles%\OpenVPN\sample-config"
copy client.ovpn "%ProgramFiles%\OpenVPN\config"
Now you need to edit the client 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:
proto tcp
;proto udp
Put a semicolon at the beginning of the line to disable this parameter.
remote <cloud computer’s public IP address> 80
Example: remote 212.46.5.117 80
cert <computer name>.crt
key <computer name>.key
;tls-auth ta.key 1
Put a semicolon at the beginning of the line to disable this parameter.
Finally, configure the OpenVPN client 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.