LinuxCommandLibrary

protonvpn-connect

Connect to a ProtonVPN server

TLDR

Connect to ProtonVPN interactively

$ protonvpn [[c|connect]]
copy

Connect to ProtonVPN using the fastest server available
$ protonvpn [[c|connect]] [[-f|--fastest]]
copy

Connect to ProtonVPN using a specific server with a specific protocol
$ protonvpn [[c|connect]] [server_name] -p [udp|tcp]
copy

Connect to ProtonVPN using a random server with a specific protocol
$ protonvpn [[c|connect]] [[-r|--random]] -p [udp|tcp]
copy

Connect to ProtonVPN using the fastest Tor-supporting server
$ protonvpn [[c|connect]] --tor
copy

Display help
$ protonvpn [[c|connect]] --help
copy

SYNOPSIS

protonvpn-connect [OPTIONS]

PARAMETERS

autoc
    Connect to the fastest available server.

c
    Connect to a server in the specified country using its country code (e.g., US, CH). Use 'protonvpn configure' to show avilable server countries.

f
    Connect to the fastest server on the profile. Used together with the command 'protonvpn configure'.

p
    Connect to a server on the profile number. Used together with the command 'protonvpn configure'.

--help
    Display help message and exit.

--version
    Display version information and exit.

DESCRIPTION

The protonvpn-connect command is a command-line interface (CLI) tool used on Linux systems to establish and manage connections to the ProtonVPN service.
It allows users to connect to ProtonVPN servers, disconnect from active connections, and specify connection parameters.
The command simplifies the process of connecting to a VPN by providing a text-based interface that can be integrated into scripts or used directly from the terminal.
Users can specify the desired server, protocol (UDP/TCP), country, and other connection options. It is typically used by users who prefer a command-line interface or need to automate VPN connections.
It interfaces with the ProtonVPN application and network management tools to establish the VPN tunnel and configure routing. The user should install the ProtonVPN application beforehand.

CAVEATS

Requires the ProtonVPN application to be installed and configured properly. The command depends on the system's network configuration and may require appropriate permissions to modify network settings.

ERROR HANDLING

The command may return error messages if it fails to connect, disconnect, or validate server configurations. Inspect logs file with 'journalctl -u protonvpn' for more details.

CONFIGURATION

The protonvpn-connect command relies on configuration set using the protonvpn application. You need to configure the ProtonVPN app beforehand.

HISTORY

The protonvpn-connect command is part of the ProtonVPN client application for Linux, developed by Proton Technologies AG. Its development is closely tied to the evolution of the ProtonVPN service. As the service grew, a need arose for a command-line interface to allow users to easily manage and automate VPN connections. The command provides a convenient way for users to interact with the ProtonVPN service without relying on a graphical user interface.

SEE ALSO

protonvpn(1), protonvpn-cli(1), nmcli(1), ip(8)

Copied to clipboard