OpenVPN is available in Ubuntu’s default repositories, so we can use apt for the installation.
OPENVPN INSTALL INSTALL
To start off, we will install OpenVPN onto our server. When you are ready to begin, log into your Ubuntu server as your sudo user and continue below. The linked tutorial will also set up a firewall, which we will assume is in place during this guide. You can follow our Ubuntu 16.04 initial server setup guide to set up a user with appropriate permissions. You will need to configure a non-root user with sudo privileges before you start this guide. To complete this tutorial, you will need access to an Ubuntu 16.04 server. For this reason, please be mindful of how much traffic your server is handling. Note: If you plan to set up an OpenVPN server on a DigitalOcean Droplet, be aware that we, like many hosting providers, charge for bandwidth overages. This tutorial will keep the installation and configuration steps as simple as possible for these setups. In this tutorial, we’ll set up an OpenVPN server on a Droplet and then configure access to it from Windows, OS X, iOS and Android. OpenVPN is a full-featured open source Secure Socket Layer (SSL) VPN solution that accommodates a wide range of configurations. You can circumvent geographical restrictions and censorship, and shield your location and any unencrypted HTTP traffic from the untrusted network. When combined with HTTPS connections, this setup allows you to secure your wireless logins and transactions. The traffic emerges from the VPN server and continues its journey to the destination. Want to access the Internet safely and securely from your smartphone or laptop when connected to an untrusted network such as the WiFi of a hotel or coffee shop? A Virtual Private Network (VPN) allows you to traverse untrusted networks privately and securely as if you were on a private network.