vpn.sh is a shell script to simplify OpenConnect VPN client experience.
- Install OpenConnect and vpn-slice
brew install openconnect vpn-slice
mkdir -p ~/.openconnect
cp connection-info.env ~/.openconnect
- Modify
~/.openconnect/connection-info.env
sudo cp vpn.sh /usr/local/bin/vpn
# shows available commands
vpn
# starts vpn
sudo vpn start
# stops vpn
sudo vpn stop
# shows vpn status
sudo vpn status
# restarts vpn
sudo vpn restart
Logs are available at /tmp/openconnect.log