Difference between revisions of "ProtonVPN"

From ArchWiki
Jump to navigation Jump to search
(→‎Walkthrough: Simplified steps in walkthrough. Removed resolv-conf script tutorial and linked to OpenVPN article with up to date steps.)
(fixed section fragments (interactive))
Tag: wiki-scripts
 
(7 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
[[es:ProtonVPN]]
 
[[es:ProtonVPN]]
 
[[ja:ProtonVPN]]
 
[[ja:ProtonVPN]]
 +
[[ru:ProtonVPN]]
 
{{Related articles start}}
 
{{Related articles start}}
{{Related|openvpn}}
+
{{Related|OpenVPN}}
 
{{Related articles end}}
 
{{Related articles end}}
 +
 
[https://www.protonvpn.com ProtonVPN] is a VPN provider that utilizes the OpenVPN protocol.
 
[https://www.protonvpn.com ProtonVPN] is a VPN provider that utilizes the OpenVPN protocol.
  
In order to use this tutorial, one must have a protonvpn account.
+
Every solution requires a ProtonVPN account and the {{pkg|openvpn}} package.
 +
 
 +
== OpenVPN command-line interface ==
  
== Walkthrough ==
+
VPN connection can be run manually with interface provided by the {{pkg|openvpn}} package.
  
[[Install]] {{pkg|openvpn}}.
+
=== Setup ===
  
Log into ProtonVPN and download one or more OpenVPN configuration files.
+
Download one or more OpenVPN configuration files from [https://account.protonvpn.com/downloads ProtonVPN Downloads page].
  
 
Copy the *.ovpn client configuration files into {{ic|/etc/openvpn/client/}} and make backup of original.
 
Copy the *.ovpn client configuration files into {{ic|/etc/openvpn/client/}} and make backup of original.
Line 20: Line 24:
 
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]].
 
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]].
  
Start your VPN:
+
=== Usage ===
 +
 
 +
Connect to the VPN:
  
 
  # openvpn /etc/openvpn/client/client_config_file.ovpn
 
  # openvpn /etc/openvpn/client/client_config_file.ovpn
 +
 +
Provide '''OpenVPN / IKEv2 Username''' from the [https://account.protonvpn.com/settings ProtonVPN Account page].
  
 
Press {{ic|Ctrl+C}} to close the VPN connection.  
 
Press {{ic|Ctrl+C}} to close the VPN connection.  
  
=== Saving OpenVPN Authentication ===
+
=== Tips and tricks ===
  
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.
+
==== Saving OpenVPN authentication ====
 +
 
 +
OpenVPN credentials can be saved in a separate file and read automatically:
  
 
{{hc|/etc/openvpn/client/client_config_file.ovpn|
 
{{hc|/etc/openvpn/client/client_config_file.ovpn|
Line 39: Line 49:
 
}}
 
}}
  
=== Enable VPN on Boot ===
+
==== Enable VPN on boot ====
  
 
For systemd service configuration, see [[OpenVPN#systemd service configuration]].
 
For systemd service configuration, see [[OpenVPN#systemd service configuration]].
  
== Use ProtonVPN-cli ==
+
== protonvpn-cli ==
 +
 
 +
ProtonVPN supplies a utility to access the VPN. Details can be found on the [https://protonvpn.com/support/linux-vpn-tool/ official website] and the [https://github.com/ProtonVPN/protonvpn-cli GitHub repository].
 +
 
 +
=== Setup ===
 +
 
 +
[[Install]] the {{AUR|protonvpn-cli}} package.
 +
 
 +
Initialize the client:
 +
 
 +
# protonvpn-cli -init
 +
 
 +
Enter your '''ProtonVPN Login''' username and password, which have to be configured on the [https://account.protonvpn.com/settings ProtonVPN Settings] page. For example:
 +
 
 +
{{bc|
 +
Enter OpenVPN username: ProtonVPN.user
 +
Enter OpenVPN password:
 +
}}
 +
 
 +
After entering the credentials, you have to select your subscription plan. For example, select the Free plan:
 +
 
 +
{{bc|
 +
[.]ProtonVPN Plans:
 +
1) Free
 +
2) Basic
 +
3) Plus
 +
4) Visionary
 +
Enter Your ProtonVPN plan ID: 1
 +
}}
 +
 
 +
=== Usage ===
 +
 
 +
Connect to the VPN:
 +
 
 +
# protonvpn-cli -connect
 +
 
 +
You should see detailed country list with all available servers. Select preferred server and click OK.
 +
 
 +
Then select UDP or TCP protocol and click OK again.
 +
 
 +
If connection was successful, you will see following output:
 +
 
 +
{{bc|
 +
Connecting...
 +
Connected!
 +
New IP: X.X.X.X
 +
}}
 +
 
 +
== Graphical interface ==
 +
 
 +
Graphical interface for setting up OpenVPN connection may be provided by your [[desktop environment]]. Search in connection settings. Otherwise, [[NetworkManager#Installation]], [[NetworkManager#VPN support]] and [[NetworkManager#Front-ends]] provide useful information.
 +
 
 +
{{Note|You still need to follow [[#Setup]].}}
  
ProtonVPN supplies a utility to access the VPN. Details can be found on [https://protonvpn.com/support/linux-vpn-tool/ their website] and the GitHub repository can be found [https://github.com/ProtonVPN/protonvpn-cli here]. This package can be installed directly from [https://aur.archlinux.org/packages/protonvpn-cli/ AUR].
+
<!-- This section requires further development -->

Latest revision as of 20:40, 19 August 2019

ProtonVPN is a VPN provider that utilizes the OpenVPN protocol.

Every solution requires a ProtonVPN account and the openvpn package.

OpenVPN command-line interface

VPN connection can be run manually with interface provided by the openvpn package.

Setup

Download one or more OpenVPN configuration files from ProtonVPN Downloads page.

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.

Usage

Connect to the VPN:

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

Provide OpenVPN / IKEv2 Username from the ProtonVPN Account page.

Press Ctrl+C to close the VPN connection.

Tips and tricks

Saving OpenVPN authentication

OpenVPN credentials can be saved in a separate file and read 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.

protonvpn-cli

ProtonVPN supplies a utility to access the VPN. Details can be found on the official website and the GitHub repository.

Setup

Install the protonvpn-cliAUR package.

Initialize the client:

# protonvpn-cli -init

Enter your ProtonVPN Login username and password, which have to be configured on the ProtonVPN Settings page. For example:

Enter OpenVPN username: ProtonVPN.user
Enter OpenVPN password:

After entering the credentials, you have to select your subscription plan. For example, select the Free plan:

[.]ProtonVPN Plans:
1) Free
2) Basic
3) Plus
4) Visionary
Enter Your ProtonVPN plan ID: 1

Usage

Connect to the VPN:

# protonvpn-cli -connect

You should see detailed country list with all available servers. Select preferred server and click OK.

Then select UDP or TCP protocol and click OK again.

If connection was successful, you will see following output:

Connecting...
Connected!
New IP: X.X.X.X

Graphical interface

Graphical interface for setting up OpenVPN connection may be provided by your desktop environment. Search in connection settings. Otherwise, NetworkManager#Installation, NetworkManager#VPN support and NetworkManager#Front-ends provide useful information.

Note: You still need to follow #Setup.