

The first step in building an OpenVPN configuration is to establish a PKI (public key infrastructure). To install openvpn in a terminal enter: sudo apt install openvpn easy-rsa VPN client implementations are available for almost anything including all Linux distributions, macOS, Windows and OpenWRT-based WLAN routers. The port number can be configured as well, but port 1194 is the official one this single port is used for all communication. OpenVPN can be used in a routed or bridged VPN mode and can be configured to use either UDP or TCP.

If you want more than just pre-shared keys OpenVPN makes it easy to set up a Public Key Infrastructure (PKI) to use SSL/TLS certificates for authentication and key exchange between the VPN server and clients. This chapter will cover installing and configuring OpenVPN to create a VPN. It belongs to the family of SSL/TLS VPN stacks (different from IPSec VPNs). OpenVPN is a Virtual Private Networking (VPN) solution provided in the Ubuntu Repositories. Multi-node configuration with Docker-Composeĭistributed Replicated Block Device (DRBD)
