LinuxCommandLibrary

ivpn

Connect to the IVPN service

TLDR

Print the current state of IVPN, including the connection and firewall status

$ ivpn status
copy

List available servers to connect to
$ ivpn servers
copy

SYNOPSIS

ivpn [options]

PARAMETERS

connect
    Connect to the IVPN server. By default, connects to the fastest available server.

disconnect
    Disconnect from the currently connected IVPN server.

status
    Display the current VPN connection status and other relevant information.

location
    Get the current VPN location.

locations
    List available IVPN server locations.

settings
    Display current IVPN settings.

set
    Set the value of a specified IVPN setting. For example, `ivpn set autoconnect on`.

show
    Show the value of a specified IVPN setting.

--version
    Display the version of the IVPN CLI.

--help
    Display help information about the IVPN CLI.

DESCRIPTION

The ivpn command provides a command-line interface (CLI) for managing and controlling the IVPN VPN service on Linux systems. It allows users to connect to VPN servers, disconnect, manage settings, check connection status, configure firewall, and perform other related tasks directly from the terminal. The command simplifies VPN management for users who prefer a text-based interface or wish to automate VPN-related actions through scripts.
It provides control over connection protocols such as OpenVPN and WireGuard. Connection status is constantly monitored. ivpn CLI tools provide a consistent experience across different Linux distributions. It is the main way to manage IVPN on headless servers or systems without a graphical user interface.

CAVEATS

The ivpn command requires the IVPN client to be installed and properly configured on the system. User authentication (username/password or key) may be required. Firewall settings configured through the CLI may affect other network services.

FIREWALL

The ivpn CLI allows configuring a firewall to prevent traffic leakage outside the VPN tunnel. This can significantly enhance security by blocking all network traffic if the VPN connection drops unexpectedly.

PROTOCOL SELECTION

Users can select their preferred VPN protocol (OpenVPN or WireGuard) through the ivpn command. WireGuard is generally faster, while OpenVPN may offer better compatibility in some network environments.

HISTORY

The ivpn command-line tool was developed by IVPN to provide users with a flexible and scriptable interface for managing their VPN connections on Linux. It evolved alongside the IVPN service, incorporating new features and protocols as they were added to the main application. Its usage has grown significantly with the increasing adoption of VPNs for privacy and security. The initial usage was limited to basic connection management, but expanded to more configuration management.

SEE ALSO

ip(8), route(8), iptables(8), openvpn(8), wireguard(8)

Copied to clipboard