Difference between revisions of "ProtonVPN"

From ArchWiki
Jump to navigation Jump to search
(protonvpn-cli: beautification)
(protonvpn-cli: add information about installation and usage)
Line 50: Line 50:
 
== 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]. This package can also be installed as {{AUR|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].
 +
 
 +
== Installation ==
 +
 
 +
[[Install]] the {{AUR|protonvpn-cli}} package.
 +
 
 +
== Usage ==
 +
 
 +
Initialize the client:
 +
 
 +
# protonvpn-cli -init
 +
 
 +
Enter your OpenVPN 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
 +
}}
 +
 
 +
Now you can 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
 +
}}

Revision as of 11:33, 14 June 2019

ProtonVPN is a VPN provider that utilizes the OpenVPN protocol.

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

Installation

Install the openvpn package.

Usage

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.

Connect to the VPN:

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

Press Ctrl+C to close the VPN connection.

Tips and tricks

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.

protonvpn-cli

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

Installation

Install the protonvpn-cliAUR package.

Usage

Initialize the client:

# protonvpn-cli -init

Enter your OpenVPN 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

Now you can 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