Difference between revisions of "ProtonVPN"

From ArchWiki
Jump to navigation Jump to search
m (added an interlanguage for german)
(→‎Walkthrough: Simplified steps in walkthrough. Removed resolv-conf script tutorial and linked to OpenVPN article with up to date steps.)
Line 16: Line 16:
 
Log into ProtonVPN and download one or more OpenVPN configuration files.
 
Log into ProtonVPN and download one or more OpenVPN configuration files.
  
Copy the *.ovpn files into {{ic|/etc/openvpn/client/}}
+
Copy the *.ovpn client configuration files into {{ic|/etc/openvpn/client/}} and make backup of original.
  
Pick the corresponding '''.ovpn''' that will be used (ca.protonvpn.com.tcp443.ovpn is used as an example)
+
Follow [[OpenVPN#Update_systemd-resolved_script|these steps]] to make sure, that all your network traffic uses VPN. If you use systemd older than 229, follow [[OpenVPN#Update resolv-conf script|these steps]].
 
 
Copy the file with a new extension (this is just so you keep the original ovpn file intact)
 
 
 
# cp /etc/openvpn/client/ca.protonvpn.com.tcp443.ovpn /etc/openvpn/client/protonvpn.conf
 
 
 
Install the [https://github.com/masterkorp/openvpn-update-resolv-conf openvpn-update-resolv-conf] script. It needs to be saved for example at {{ic|/etc/openvpn/update-resolv-conf}} and made executable with [[chmod]]. There is also an AUR package: {{AUR|openvpn-update-resolv-conf-git}} 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 update-resolv-conf.sh script.
 
 
 
{{hc|/etc/openvpn/client/protonvpn.conf|
 
script-security 2
 
up /etc/openvpn/update-resolv-conf
 
down /etc/openvpn/update-resolv-conf
 
down-pre
 
}}
 
  
 
Start your VPN:
 
Start your VPN:
  
  # openvpn /etc/openvpn/client/protonvpn.conf
+
  # openvpn /etc/openvpn/client/client_config_file.ovpn
  
 
Press {{ic|Ctrl+C}} to close the VPN connection.  
 
Press {{ic|Ctrl+C}} to close the VPN connection.  
Line 47: Line 30:
 
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.
 
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.
  
{{hc|/etc/openvpn/client/protonvpn.conf|
+
{{hc|/etc/openvpn/client/client_config_file.ovpn|
 
auth-user-pass /etc/openvpn/client/login.conf
 
auth-user-pass /etc/openvpn/client/login.conf
 
}}
 
}}

Revision as of 09:29, 12 June 2019

ProtonVPN is a VPN provider that utilizes the OpenVPN protocol.

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

Walkthrough

Install openvpn.

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

Copy the *.ovpn client configuration files into /etc/openvpn/client/ and make backup of original.

Follow these steps to make sure, that all your network traffic uses VPN. If you use systemd older than 229, follow these steps.

Start your VPN:

# openvpn /etc/openvpn/client/client_config_file.ovpn

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.

/etc/openvpn/client/client_config_file.ovpn
auth-user-pass /etc/openvpn/client/login.conf
/etc/openvpn/client/login.conf
openvpn_username
openvpn_password

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.