openconnect

SSL VPN client

TLDR

Connect to VPN
$ openconnect [vpn.example.com]
Connect with username
$ openconnect -u [username] [vpn.example.com]
Use certificate
$ openconnect -c [cert.pem] [vpn.example.com]
Specify protocol
$ openconnect --protocol=[anyconnect|nc|gp] [vpn.example.com]
Background mode
$ openconnect -b [vpn.example.com]

SYNOPSIS

openconnect [options] server

DESCRIPTION

openconnect is an SSL VPN client. Compatible with Cisco AnyConnect.The tool establishes VPN connections. Supports multiple protocols.

PARAMETERS

SERVER

VPN server address.
-u USER
Username.
-c CERT
Client certificate.
--protocol PROTO
VPN protocol.
-b
Run in background.
--help
Display help information.

INSTALL

sudo apt install openconnect
sudo dnf install openconnect
sudo pacman -S openconnect
sudo apk add openconnect
sudo zypper install openconnect
brew install openconnect
nix profile install nixpkgs#openconnect

CAVEATS

Requires root/sudo for tun device. Multiple protocol support.

HISTORY

openconnect was created as an open-source alternative to Cisco AnyConnect client.

SEE ALSO

openvpn(1), vpnc(1)