Configure an OpenVPN server
Required configuration items
- Enable the OpenVPN server.
The OpenVPN server is enabled by default.
- The mode used by the OpenVPN server, one of:
- TUN (OpenVPN managed)—Also known as routing mode. Each OpenVPN client is assigned a different IP subnet from the OpenVPN server and other OpenVPN clients. OpenVPN clients use Network Address Translation (NAT) to route traffic from devices connected on its LAN interfaces to the OpenVPN server.
- TAP - OpenVPN managed—Also know as bridging mode. A more advanced implementation of OpenVPN. The Connect EZ 4/4i device creates an OpenVPN interface and uses standard interface configuration (for example, a standard DHCP server configuration).
- TAP - Device only—An alternate form of OpenVPN bridging mode, in which the device, rather than OpenVPN, controls the interface configuration. If this method is is, the OpenVPN server must be included as a device in either an interface or a bridge.
- The firewall zone to be used by the OpenVPN server.
- The IP network and subnet mask of the OpenVPN server.
- The server's Certificate authority (CA) certificate, and public, private and Diffie-Hellman (DH) keys.
- An OpenVPN authentication group and an OpenVPN user.
- Determine the method of certificate management:
- Certificates managed by the server.
- Certificates created externally and added to the server.
- If certificates are created and added to the server, determine the level of authentication:
- Certificate authentication only.
- Username and password authentication only.
- Certificate and username and password authentication.
If username and password authentication is used, you must create an OpenVPN authentication group and user. See Configure an OpenVPN Authentication Group and User for instructions.
- Certificates and keys:
- The CA certificate (usually in a ca.crt file).
- The Public key (for example, server.crt)
- The Private key (for example, server.key).
- The Diffie Hellman key (usually in dh2048.pem).
- Active recovery configuration. See Configure SureLink active recovery for OpenVPN for information about OpenVPN active recovery.
Additional configuration items
- The route metric for the OpenVPN server.
- The range of IP addresses that the OpenVPN server will provide to clients.
- The TCP/UDP port to use. By default, the Connect EZ 4/4i device uses port 1194.
- Access control list configuration to restrict access to the OpenVPN server through the firewall.
- Additional OpenVPN parameters.