brew install openconnect
echo "yourpassword" > ~/.vpn_password
chmod 600 ~/.vpn_password
Append script below to ~/.bashrc or ~/.zshrc
cat vpnrc.sh >> ~/.zshrc
or
cat vpnrc.sh >> ~/.bashrc
for first time use
source ~/.zshrc
or
source ~/.bashrc
vpn-up
vpn-down