How to setup Linux OpenVPN

linux-devices

Need a VPN for Linux?

Get ExpressVPN Now
refer a friend

Love ExpressVPN? Want a free month?

Refer a friend now

Use the following steps to setup ExpressVPN on Linux using the Terminal. In general, you’re setting up an OpenVPN connection via Terminal, using our configuration files.

Jump to…

Download the OpenVPN configuration files
Install and set up the VPN
Connect to the VPN server location
Disconnect from the VPN server location


Download the OpenVPN configuration files

Open the Welcome Email you received when you signed up for ExpressVPN. Click the link in the email.

open the welcome email

If you can’t find the link, log in to your account here.

log in to expressvpn.com

Once you’ve clicked the link in the welcome email or logged in to the website, click on Set Up ExpressVPN on the Active Subscriptions page. This will take you to the Downloads page.

set-up-expressvpn

Click on Manual Config on the left side of the screen and then select the OpenVPN tab on the right. Find the location(s) you want to connect to (e.g., Los Angeles, New York, Hong Kong), then download and save the .ovpn file(s) to your desktop.

download openvpn configuration files

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


Install and set up the VPN

Start a Terminal session.

In the Terminal, type the following commands.

To install OpenVPN, type sudo apt-get install -y openvpn

If you are using 14.04, please enter the following additional commands. Otherwise, please skip to the next step.

sudo apt-get install network-manager network-manager-openvpn network-manager-openvpn-gnome

sudo apt-get install openvpn easy-rsa

To configure OpenVPN, type sudo openvpn --config and then drag and drop the .ovpn file you wish to use from the desktop into the Terminal window. Terminal will automatically capture the path for you.

drag and drop the file

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


Connect to the VPN server location

To connect OpenVPN, once the path is loaded, press Enter to initiate connection to the server.

Wait for the connection sequence to finish. Once the connection has been established successfully, you should see something like the screenshot below (Initialization Sequence Completed).

initialization sequence completed

Note: For the VPN to be active, the Terminal window must stay active/open. It can be minimized—just don’t close it!

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top


Disconnect from the VPN server location

To disconnect, press Ctrl + C or close the Terminal window (quit/exit).

Need help? Contact the ExpressVPN Support Team for immediate assistance.

Back to top

Was this article helpful to you?32 22 Undo

Not an ExpressVPN user yet? Sign up today so you can start using our apps!

Install ExpressVPN on all your devices!

windows apple android ios linux chrome ebooks phones consoles router nas share