Rob Pearce
42d8999ad0
In theory, VPNs other than cisco/f5 are now supported too. |
||
---|---|---|
1 | ||
README.md | ||
cvpn | ||
cvpn.png |
README.md
Overview
Simple CLI wrapper for Openconnect to support multiple VPN profiles.
Requirements
- bash version >= 4.x
- openconnect
- vpn-slice
Usage
./cvpn [OPTIONS] on|off|status|list [vpnname]
Wrapper for openconnect to support multiple VPN profiles.
-h show this help
-p profile Use selected connection profile
-c file Use selected config file (default is /Users/rob/.vpn/config)
Config file format:
#Specify default profile like this:
#default:myvpn2
#Profile,Username,Password,VPNGroup,Vendor,ServerIP,VPNRoutes,ServerCert(script will obtain this and auto-update config file)
# Cisco VPNs, group is optional
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,
# F5 VPNs
myvpn3,username_3,password_3,,f5,1.1.1.1,172.16.0.0/12,