Prepare the VPS and clients
Use a supported Ubuntu Server image with administrator access, TUN support and an address reachable by the clients. Choose a tunnel subnet and a transport and port that match your OpenVPN configuration. Ubuntu uses UDP port 1194 in its example.
Install OpenVPN and prepare certificates
Install the Community packages with sudo apt install openvpn easy-rsa. Follow the Ubuntu guide to create a certificate authority, a server identity and a distinct client identity for each device. Protect the CA private key and distribute each client profile securely.
Start the service and verify a profile
Follow the upstream server configuration and service instructions. Allow the chosen transport and port through your firewall. On a client, import its profile and verify certificate validation and access to the intended resource. Check forwarding and firewall policy if the tunnel connects but the destination is unreachable.
Revoke access and manage renewals
Track certificate expiry, securely back up configuration and PKI, and use a certificate revocation list to remove lost or retired devices. Confirm the server applies the updated list.