2025-03-14 21:59:59 -06:00
|
|
|
# openconnect
|
|
|
|
|
|
|
|
|
|
> A VPN client, for Cisco AnyConnect VPNs and others.
|
|
|
|
|
> More information: <https://www.infradead.org/openconnect/manual.html>.
|
|
|
|
|
|
|
|
|
|
- Connect to a server:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`sudo openconnect {{vpn.example.org}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Connect to a server, forking into the background:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`sudo openconnect {{[-b|--background]}} {{vpn.example.org}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Terminate the connection that is running in the background:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`sudo killall -SIGINT openconnect`
|
|
|
|
|
|
|
|
|
|
- Specify the user to log in as:
|
|
|
|
|
|
|
|
|
|
`sudo openconnect {{[-u|--user]}} {{username}} {{vpn.example.org}}`
|
|
|
|
|
|
|
|
|
|
- Specify the connection protocol:
|
|
|
|
|
|
|
|
|
|
`sudo openconnect --protocol {{nc|pulse|gp|f5|fortinet|array}} {{vpn.example.org}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Connect to a server, reading options from a configuration file:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`sudo openconnect --config {{path/to/config_file}} {{vpn.example.org}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Connect to a server and authenticate with a specific SSL client certificate:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`sudo openconnect {{[-c|--certificate]}} {{path/to/certificate.pem}} {{vpn.example.org}}`
|