OpenVPN on Ubuntu 18.04

Install required packages

Connect to the OpenVPN using command line

You should see something like this:

And you’ve connected to the OpenVPN. If you terminate the terminal, the connection will be lost.

It’s more convenient to have OpenVPN option in Network Manager GUI.

Using Network Manager GUI

First, you need to restart the network-manager service after installing the OpenVPN packages above.

Then open the Network settings, click the + button next to the VPN section, then choose Import from file…

Browse to your .ovpn file to open it and click Add:

You will see your OpenVPN connection configured with On/Off switch:

You can also turn the OpenVPN connection on/off quickly here:

Enjoy your OpenVPN connection!



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store