2023-10-05 09:28:25 +11:00
|
|
|
# Overview
|
|
|
|
|
2023-10-11 11:51:03 +11:00
|
|
|
![speeddiff](cvpn.png "speed difference")
|
|
|
|
|
2023-10-12 09:22:37 +11:00
|
|
|
Simple CLI wrapper for Openconnect to support multiple VPN profiles.
|
2023-10-05 09:28:25 +11:00
|
|
|
|
2023-10-11 11:53:25 +11:00
|
|
|
# Requirements
|
|
|
|
- [bash](https://www.gnu.org/software/bash/) version >= 4.x
|
2023-10-12 09:22:37 +11:00
|
|
|
- [openconnect](https://github.com/openconnect)
|
|
|
|
- [vpn-slice](https://github.com/dlenski/vpn-slice)
|
2023-10-11 11:53:25 +11:00
|
|
|
|
2023-10-05 09:28:25 +11:00
|
|
|
# Usage
|
|
|
|
|
|
|
|
```text
|
2023-10-12 09:22:37 +11:00
|
|
|
./cvpn [OPTIONS] on|off|status|list [vpnname]
|
2023-10-05 09:28:25 +11:00
|
|
|
|
2023-10-12 09:22:37 +11:00
|
|
|
Wrapper for openconnect to support multiple VPN profiles.
|
2023-10-05 09:28:25 +11:00
|
|
|
|
2023-10-10 10:47:05 +11:00
|
|
|
-h show this help
|
2023-10-05 09:28:25 +11:00
|
|
|
-p profile Use selected connection profile
|
2023-10-05 09:30:31 +11:00
|
|
|
-c file Use selected config file (default is /Users/rob/.vpn/config)
|
2023-10-05 09:28:25 +11:00
|
|
|
|
|
|
|
Config file format:
|
2023-10-10 10:47:05 +11:00
|
|
|
#Specify default profile like this:
|
2023-10-05 09:28:25 +11:00
|
|
|
#default:myvpn2
|
2023-10-12 09:22:37 +11:00
|
|
|
#Profile,Username,Password,VPNGroup,Vendor,ServerIP,VPNRoutes,ServerCert(script will obtain this and auto-update config file)
|
2023-10-11 11:44:45 +11:00
|
|
|
# Cisco VPNs, group is optional
|
2023-10-12 09:22:37 +11:00
|
|
|
myvpn1,username_1,password_1,vpngroup_1,anyconnect,3.3.3.3,10.0.0.0/24 192.168.0.0/24,
|
|
|
|
myvpn2,username_2,password_2,vpngroup_2,anyconnect,1.1.1.1,172.16.0.0/12,
|
2023-10-11 11:44:45 +11:00
|
|
|
# F5 VPNs
|
2023-10-12 09:22:37 +11:00
|
|
|
myvpn3,username_3,password_3,,f5,1.1.1.1,172.16.0.0/12,
|
2023-10-05 09:28:25 +11:00
|
|
|
|
|
|
|
```
|