How to set up OpenVPN 3 on Linux

Here are the steps you should follow:

  1. Open the terminal by hitting CTRL + ALT + T

    To become a root user, run sudo su and input your password.

  2. Ensure that your apt supports the https transport:

    apt install apt-transport-https -y

  3. Install the OpenVPN repository key used by the OpenVPN 3 Linux packages:

    apt-key add

  4. Now you need to install the proper repository. Replace $DISTRO with the release name depending on your Debian/Ubuntu distribution. In my case it is “focal”:

    wget -O /etc/apt/sources.list.d/openvpn3.list$DISTRO.list

    then run apt update

  5. Install the OpenVPN 3 package:

    apt install openvpn3 -y

  6. Download the OpenVPN configuration files:

    wget -O /etc/openvpn3/*/

  7. Unzip the OpenVPN configuration files:

    unzip /etc/openvpn3/

  8. Go to /etc/resolv.conf by running nano /etc/resolv.conf and add this line
    nameserver at the top.

    sudo echo nameserver >> /etc/resolv.conf

    Hit CTRL + o to save the changes and CTRL + x to exit the file.