Security: OpenVPN
This is a guide intended to help configuring Comms Mundi™ OpenVPN for the first time. If you have any doubt, please refer to the reference manual, or ask us at support@wirelessmundi.com.
Certificates
The Certificates is the place where you can add or delete authorities and certificates.
This guide will help configuring two certificates under a single certificate authority.
Create a certificate authority
To add an authority go to the page Security → Certificates:
In the authority table click add button.
Set the value for the common name, for example, OpenVPN.
Set the value for the email, for example, OpenVPN@commsmundi.com.
Set the value for the expiration date, for default is 3650 = 10 years.
Set the value for the organization, for example, Wireless Mundi.
Set the value for the Unit name, for example, 1.
Set the value for the Locality, for example, Madrid.
Set the value for the Province, for example, Madrid.
Select the value for the Country, for example, Spain.
Select the option for the private key, for example, RSA 2048 bits.
Click Add
Create a certificate for ServerAuth
To add a certificate go to the page Security → Certificates:
In the certificate table click add button.
Set the value for the common name, for example, server OpenVPN.
Select the option for the private key, for example, RSA 2048 bits.
Select the extended key usage as ServerAuth.
Click Add
Create a certificate for ClientAuth
To add a certificate go to the page Security → Certificates:
In the certificate table click add button.
Set the value for the common name, for example, android_client.
Select the option for the private key, for example, RSA 2048 bits.
Select the extended key usage as ClientAuth.
Click Add
Directory
This guide will help configuring an accounts to OpenVPN configured to Directory.
Create a account
To add a account go to the page Directory → Domain:
In the users table click add button.
Set name and password.
Go to OpenVPN, then check enable OpenVPN and set password for this account.
Click Add
OpenVPN
The OpenVPN section is where you can configure the OpenVPN service and download the configuration for clients. the first step will be to active the service for it go to the page Security –> OpenVPN –> Global Configuration.
Create a connection
To add a connection go to the page Security → OpenVPN → Connections:
In the connections table click add button.
Check the status to active.
Set the value for the Name, for example, connection_OpenVPN.
Select the interface.
Set the value for the port, for default is 1194.
Select the transport, for example, UDP.
Select the server certificate, for example, server OpenVPN.
Set the value for the interface, for example, 192.168.50.2/24.
Set the value for the ip range, for example, 192.168.50.20 - 192.168.50.40.
Set the value for the domain, for example, commsmundi.com.
Set the value for the
DNS server, for example, 8.8.8.8.
Set the value for the WINS server, for example, 8.8.8.8.
Add the routes address, for example, 192.168.1.0/24.
Check the type of routes, for example, route default.
Select the type authentication, for example, certificate.
Click Add
Download config user
To add a connection go to the page Security → OpenVPN → Connections:
In the connections table click in Download config user.
Set the value for the address server.
Select the certificate client, for example android_client.
Click Download