Home » Operating Systems » Guide: How to auto connect to OpenVPN on startup on Linux Mint 18?
Operating Systems

Guide: How to auto connect to OpenVPN on startup on Linux Mint 18?

If you have ever thought about your privacy on the Internet and want to do what you can to avoid that other people might see what you’re up to on the Internet then this is a guide for you. There are many reasons for wanting to stay anonymous on the Internet. They can range from political standpoints to simply wanting to do what you can to prevent companies from collecting personal information about you.

If you use Google then you probably know that information about you, your whereabouts, habits and so forth are being collected, stored, processed and used to for example targeted advertising based on your activities. Sometimes this is a good thing and it can help you a lot. But sometimes you’re just not comfortable with this. And if you’re not comfortable with it then here’s a guide to help you to do what you can to protect your privacy. It shows how to auto connect to OpenVPN on Linux Mint 18. It is very simple and once you have followed all the steps you really don’t have to do much more than boot up your computer.

How to auto connect to OpenVPN on Linux Mint 18

Basically, there’s probably no better way to protecting your privacy on the web than to make sure that your computer can auto connect to OpenVPN at startup. And folks, here’s the step-by-step guide that takes you through the easy process of auto connect to OpenVPN on Linux Mint 18. After you have followed these steps all you have to do to stay private is to start up your computer. If you do your browsing only from your Android device fear not because it’s very easy to install OpenVPN on these devices. If you’re using Ubuntu then check out this guide on how to install another form of VPN (PPTP).

Protect your browsing, downloading, and streaming activities - VPN vs SmartDNS | Kodi VPN Use | Plex VPN Use
ProviderPurposeSetup GuidesCost
IPVanish VPNPrivacy and ProtectionLinux Mint, Ubuntu, OSMC, Windows, Android, OSMCOffer: 15% off 2 renewals
1 month: $8.50
12 months: $5.52/mo
StrongVPN
editors pick
Privacy, Protection, and Geo-UnblockingWindows, Mac OS X, iOS, AndroidOffer: Includes StrongDNS
1 month: $10.00
12 months: $5.83/mo
OverPlay VPNPrivacy, Protection, and Geo-Unblocking Windows, Mac OS X, Linux, Gaming Systems, Smart TVs, Android, iOS, TV Boxes, RoutersValentine's Day Offer:
SmartDNS + VPN $4.16/mo
1 month: $9.95
12 months: $8.33/mo
StrongDNSGeo-UnblockingWindows, Mac OS X, Linux, Gaming Systems, Smart TVs, Android, iOS, TV Boxes, Routers1 month: $5.00
12 months: $4.16/mo

First of all, make sure that you are connected to the desired OpenVPN connection. Then follow these steps.

Part 1: Terminal window

Open a terminal window (ctrl + alt + T) and execute the command nmcli con

Auto Connect to OpenVPN Linux
Step one: type nmcli con.

Then copy the UUID of your VPN connection. If you have many VPN connections added then choose the UUID of the one you want to auto connect to. If you use IPVanish, the name will be something like ipvanish-NL-Amsterdam-ams-a02 or similar. You will find the UUID under the column UUID and it contains of numbers and letters, for example 104c28ec-9a22-4615-9110-6a4839a1386a.

autoconnect openvpn linux mint uuid
The red rectangles mark the name and UUID of your OpenVPN connection (I have blurred a part of the UUID).

Now type the following command: nmcli con up uuid <yourUUIDhere>. This should start your desired OpenVPN connection.

auto connect openvpn linux command
Type this in the terminal window to start your OpenVPN.

As a result, your VPN connection should now start. On the top right of your screen a pop up box will say VPN connection has been successfully established if everything is done properly.

OpenVPN Linux Mint success
This pop-up window tells you that you’re connected to your OpenVPN.

Part 2: System Settings

Automatic connect OpenVPN Linux
Click on System Settings as shown in the image

Click on Startup Applications.

OpenVPN Automatic Linux Mint
In System Settings, click on Startup Applications.

Click on Add, then choose Custom command.

OpenVPN connection Linux mint
Click on “Add”, then on “Custom command”.
IPVanish linux mint automate
“Custom Command” is visible only after you click on “Add”.

Type a desired name in Name, for example OpenVPN.

Then, in Command, type nmcli con up uuid <yourUUIDhere>.

Set the Startup delay to 3.

So this is what it should look like:

Install OpenVPN Linux Mint details
Here you see what to type and where.

Click Add, and then restart your computer.

Once Linux Mint 18 has booted your OpenVPN connection should start – that is, your computer will auto connect to your OpenVPN on Linux Mint 18. On the top right of your screen a pop up box will say VPN connection has been successfully established if everything is done properly. 

So now you’re all set and your computer will auto connect to OpenVPN!

Further reading on OpenVPN on Windows HTPC

If you or any of your friends are using Windows then make sure that you check out our excellent guides on how to install OpenVPN on Windows HTPC and how to configure OpenVPN on Windows. Check out our guide on how to install IPVanish on Windows. Stay safe and browse privately with our VPN guides!

About the author

scouser_robbie

Diagnosed with techgeek my sickness forces me to share
solutions to techproblems to you guys. Hope you enjoy!

Archives

Join the other 110,000 followers