From ArchWiki
Revision as of 23:34, 4 October 2018 by Pedro (talk | contribs) (added spanish interlanguage link)
Jump to navigation Jump to search

ProtonVPN is a VPN provider that utilizes OpenVPN protocol.

In order to use this tutorial, one must have a protonvpn account.


Install openvpn.

Log into ProtonVPN and download one or more OpenVPN configuration files.

Copy the *.ovpn files into /etc/openvpn/client/

Pick the corresponding .ovpn that will be used ( is used as an example)

Copy the file with a new extension (this is just so you keep the original ovpn file intact)

# cp /etc/openvpn/client/ /etc/openvpn/client/protonvpn.conf

Install the openvpn-update-resolv-conf script. It needs to be saved for example at /etc/openvpn/update-resolv-conf and made executable with chmod. There is also an AUR package: openvpn-update-resolv-conf-gitAUR which will take care of the script installation for you. This script ensures that all traffic to/from the internet goes through the VPN and protects you against DNS leaks.

# chmod 755 /etc/openvpn/update-resolv-conf

Modify the .conf file to use the script.

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

Start your VPN:

# openvpn /etc/openvpn/client/protonvpn.conf

Press Ctrl+C to close the VPN connection.

Saving OpenVPN Authentication

If you get tired of punching in your username and password, you may save your OpenVPN credentials in a separate file and read them automatically.

auth-user-pass /etc/openvpn/client/login.conf

Enable VPN on Boot

For systemd service configuration, see OpenVPN#systemd service configuration.

Use ProtonVPN-cli

ProtonVPN supplies a utility to access the VPN. Details can be found on their website and the GitHub repository can be found here. This package can be installed directly from AUR.