LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

nordvpn

command-line interface for the NordVPN service, providing secure VPN

TLDR

Log in to a NordVPN account
$ nordvpn login
copy
Show whether the tunnel is up and where it lands
$ nordvpn status
copy
Connect to the fastest nearby server
$ nordvpn connect
copy
List the countries with servers
$ nordvpn countries
copy
List the cities available in a country
$ nordvpn cities [Germany]
copy
Connect to a specific country
$ nordvpn connect [Germany]
copy
Connect to a specific city
$ nordvpn connect [Germany] [Berlin]
copy
Connect to a server group, such as the P2P set
$ nordvpn connect [P2P]
copy
Disconnect
$ nordvpn disconnect
copy
Review the current settings
$ nordvpn settings
copy
Connect automatically whenever the machine comes up
$ nordvpn set autoconnect on
copy
Block traffic entirely if the tunnel drops
$ nordvpn set killswitch on
copy
Log out of the account
$ nordvpn logout
copy

SYNOPSIS

nordvpn command [options]

DESCRIPTION

nordvpn is the command-line interface for the NordVPN service, providing secure VPN connections to servers worldwide. It manages authentication, server connections, and client settings.The client supports various connection protocols (NordLynx/WireGuard, OpenVPN) and features like kill switch, auto-connect, and split tunneling. Server selection can be automatic (nearest/fastest) or manual by country, city, or specific server.The NordVPN daemon must be running for the CLI to function; it's typically managed as a systemd service.

PARAMETERS

login

Authenticate with NordVPN account
logout
Log out of the current account
connect, c
Connect to a VPN server
disconnect, d
Disconnect from the VPN
status
Show current connection status
countries
List available server countries
cities _country_
List available cities in a country
set, s
Configure NordVPN settings
settings
Display current settings
whitelist
Manage whitelisted ports and subnets

INSTALL

nix profile install nixpkgs#nordvpn
copy

CAVEATS

Requires an active NordVPN subscription. The nordvpnd daemon must be running (usually started via systemd). Initial login opens a browser for authentication. The kill switch, when enabled, blocks internet access if the VPN disconnects.

SEE ALSO

openvpn(8), wg(8), nmcli(1)

Copied to clipboard
Kai