How to manually configure OpenVPN for Proton VPN in Linux | Proton (2024)

OpenVPN is a battle-tested, open-source VPN protocol used by our Linux VPN app and Linux CLI.

  • Learn more about OpenVPN
  • Get Proton VPN for Linux

It’s also possible to manually configure OpenVPN on Linux using third-party clients. In this guide, we’ll show you how to configure OpenVPN on any Linux distribution using the command line or NetworkManager (for those who prefer a GUI).

  • Preparing for OpenVPN
  • How to manually configure OpenVPN CLI
  • How to use OpenVPN with NetworkManager
  • How to check for DNS leaks

In addition to OpenVPN, you can manually configure WireGuard on Linux.

  • Learn more about WireGuard
  • Learn more about OpenVPN vs. WireGuard

An advantage of manually configuring OpenVPN or WireGuard on Linux is that our OpenVPN and WireGuard configuration files support port forwarding. However, our all-new Linux app supports port forwarding and also includes a kill switch.

Preparing for OpenVPN

Before we start, you’ll need two things:

1. An OpenVPN configuration file

Sign in to account.protonvpn.com, go to DownloadsOpenVPN configuration files, and download an OpenVPN configuration file for Linux.

Learn how to download an OpenVPN configuration file from Proton VPN

2. Your OpenVPN username and password

While still signed in to account.protonvpn.com, go to AccountOpenVPN / IKEv2 username to view your OpenVPN username and password. Note that these are not your regular Proton Account username and password.

Learn how to access your Proton VPN OpenVPN username and password

How to use OpenVPN with NetworkManager

This is the recommended way to manually configure OpenVPN if your distribution supports NetworkManager(new window).

This guide was created using Ubuntu 22.04, but the instructions are very similar on any system that supports NetworkManager. If your desktop environment uses NetworkManager, there’s a good chance that it already supports OpenVPN. If it doesn’t, you can easily install OpenVPN support in NetworkManager:

On Debian and Ubuntu-based distributions, enter:

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

On Fedora, enter:

sudo dnf -y install NetworkManager-openvpn NetworkManager-openvpn-gnome

On Arch, enter:

sudo pacman -S networkmanager-openvpn

Log out of your Linux session, then log in again for the changes to take effect.

Once NetworkManager supports OpenVPN, you can configure it. To do this:

1. Go to SettingsNetworkVPN+.

How to manually configure OpenVPN for Proton VPN in Linux | Proton (1)

2. Select Import from file… and use your default file manager to Open the OpenVPN configuration file you downloaded earlier.

How to manually configure OpenVPN for Proton VPN in Linux | Proton (2)

3. Go to Authentication and enter your OpenVPN Username and Password into the relevant fields. Click Add when you’re done

How to manually configure OpenVPN for Proton VPN in Linux | Proton (3)

4. Back at SettingsNetworkVPN, toggle the switch next to the OpenVPN connection you just set up to on. You can configure as many connections as you like.

How to manually configure OpenVPN for Proton VPN in Linux | Proton (4)

You’re now connected to Proton VPN. To verify this, visit ip.me(new window). Since this is a manual connection, you should also check DNS leaks.

How to manually configure OpenVPN for Proton VPN in Linux | Proton (5)

To disconnect from Proton VPN, simply toggle the switch off.

How to manually configure OpenVPN CLI

This method is more complicated than using NetworkManager, and is only recommended for very specific use cases. Note also that newer distributions (including the latest version of Ubuntu) don’t support openresolv, and so the following method won’t work with them. We’ll update this guide soon, but in the meantime, the NetworkManager method described above will work on most distros.

OpenVPN and the other packages discussed here should be available for almost all Linux distributions. In this guide, we’ll show you how to set up OpenVPN on Debian and Ubuntu-based systems, Fedora, and Arch (including Manjaro).

1. Install OpenVPN

Open a terminal window and:

On Debian and Ubuntu-based distributions, enter:

sudo apt install openvpn

On Fedora, enter:

sudo dnf install openvpn

On Arch, enter:

sudo pacman -S openvpn
How to manually configure OpenVPN for Proton VPN in Linux | Proton (6)

2. Install openresolv

You need openresolv (an open-source implementation of resolvconf(new window)) to properly configure DNS and prevent DNS leaks.

Learn more about DNS and DNS leaks

On Debian and Ubuntu-based distributions, enter:

sudo apt install openresolv

On Fedora, enter:

sudo dnf install openresolv

On Arch, enter:

sudo pacman -S openresolv

How to manually configure OpenVPN for Proton VPN in Linux | Proton (7)

3. Download the following DNS update script

Again, this is needed to ensure that DNS is configured correctly. Wget is pre-installed on most Linux distros. Run:

sudo wget "https://raw.githubusercontent.com/ProtonVPN/scripts/master/update-resolv-conf.sh(new window)" -O "/etc/openvpn/update-resolv-conf"

Followed by:

sudo chmod +x "/etc/openvpn/update-resolv-conf"
How to manually configure OpenVPN for Proton VPN in Linux | Proton (8)

4. Change the directory to where you downloaded your OpenVPN configuration file

Enter

cd <path>

For example:

cd ~/Downloads

5. Connect to a VPN server using OpenVPN

Run:

sudo openvpn <config.ovpn>

Where <config.ovpn> is the name of the OpenVPN configuration file you downloaded earlier.

For example:

sudo openvpn node-ch-02.protonvpn.net.udp.ovpn

Enter your OpenVPN username and password when prompted.

How to manually configure OpenVPN for Proton VPN in Linux | Proton (9)

You should see a message saying Initialization Sequence Completed. This means you’re successfully connected to Proton VPN. You can verify this by visiting ip.me(new window). Since this is a manual connection, you should also check for DNS leaks.

How to manually configure OpenVPN for Proton VPN in Linux | Proton (10)

To disconnect from the VPN server, simply close the terminal window.

How to check for DNS leaks

After visiting ip.me, go to www.dnsleaktest.com(new window) and run the Standard test.

How to manually configure OpenVPN for Proton VPN in Linux | Proton (11)

When the test is complete, look at the first three sets of numbers of the returned IP addresses. These should all match the first three sets of numbers of your IP address, as shown on ip.me.

How to manually configure OpenVPN for Proton VPN in Linux | Proton (12)

If they don’t, then you have a DNS leak.

How to manually configure OpenVPN for Proton VPN in Linux | Proton (2024)

FAQs

How to manually configure OpenVPN for Proton VPN in Linux | Proton? ›

To run OpenVPN, you can: Right click on an OpenVPN configuration file (.ovpn) and select Start OpenVPN on this configuration file. Once running, you can use the F4key to exit. Once running in a command prompt window, OpenVPN can be stopped by the F4 key.

How do I manually run OpenVPN? ›

To run OpenVPN, you can: Right click on an OpenVPN configuration file (.ovpn) and select Start OpenVPN on this configuration file. Once running, you can use the F4key to exit. Once running in a command prompt window, OpenVPN can be stopped by the F4 key.

What is my Proton VPN OpenVPN credentials? ›

Your OpenVPN username and password are different to your Proton VPN account username or password. To find them, log in to account.protonvpn.com and go to ≡ (if on an iPhone) → Account → OpenVPN / IKEv2 username.

How do I enable VPN on Proton VPN? ›

In Proton VPN for Android or iOS, tap the triple bars on top and select “settings.” Go to “always-on VPN & kill switch” on Android or “security options” on iOS. Locate Proton VPN in the new menu and toggle both “always-on VPN” and “block connections without VPN” on Android or “kill switch” on iOS.

Where is the OVPN config file in Linux? ›

In this case, the configuration files are in the ivpn-openvpn-config/ sub-folder of the user home folder. The full path is /home/user/ivpn-openvpn-config/ . Note: Unless your Linux user account is called user the full path will likely be different on your computer system.

How do I give access to Proton VPN? ›

To add users to your Proton VPN for Business plan, you must first create an organization. Once you have created an organization, you can add users to it. The number of users you can add depends on the number of licenses you purchased as part of your plan.

How do I access Proton Mail VPN? ›

Note: For existing Proton Mail customers, your Proton credentials are your regular Proton Mail username and password. To sign in using your Proton credentials, go to account.protonvpn.com or visit protonvpn.com and click Sign in at the top right-hand corner.

What port does Proton VPN OpenVPN use? ›

By default, OpenVPN uses UDP port 1194 and TCP port 443, but Proton VPN's apps can connect via OpenVPN using multiple ports to defeat censorship attempts.

Top Articles
How Much Does It Cost to Replace a Tesla Battery? (And Can You Do It Yourself?)
Retrieving JWT Token
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
How To Cut Eelgrass Grounded
Pac Man Deviantart
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Umn Biology
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
San Pedro Sula To Miami Google Flights
Selly Medaline
Latest Posts
Article information

Author: Fr. Dewey Fisher

Last Updated:

Views: 6513

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Fr. Dewey Fisher

Birthday: 1993-03-26

Address: 917 Hyun Views, Rogahnmouth, KY 91013-8827

Phone: +5938540192553

Job: Administration Developer

Hobby: Embroidery, Horseback riding, Juggling, Urban exploration, Skiing, Cycling, Handball

Introduction: My name is Fr. Dewey Fisher, I am a powerful, open, faithful, combative, spotless, faithful, fair person who loves writing and wants to share my knowledge and understanding with you.