Skip to content

Instantly share code, notes, and snippets.

@gavvvr
Last active August 15, 2019 09:26
Show Gist options
  • Save gavvvr/5ac89574bffabe045e585e1182afd06e to your computer and use it in GitHub Desktop.
Save gavvvr/5ac89574bffabe045e585e1182afd06e to your computer and use it in GitHub Desktop.
Install OpenConnect with Brew on High Sierra/Mojave

Installation and usage

brew install openconnect
sudo openconnect vpn.domain.com -u email@domain.com --authgroup=VPN-SSL-GROUP

If you have issues with DNS resolution (even though your /ect/resolv.conf looks good), configure DNS servers manually:

# list of available networks can be found using:
# networksetup -listallnetworkservices
networksetup -setdnsservers Wi-Fi 10.66.0.1

Additional tools

Optional GUI brew cask install openconnect-gui

Mac OS X users with OS X 10.6 or older, or using OpenConnect 6.00 or older, will also need to install the Mac OS X tun/tap driver. Newer versions of OpenConnect will use the utun device on OS X which does not require additional kernel modules to be installed.

brew install tuntap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment