Connecting to the VPN

Once you have installed OpenConnect and checked that you have a vpnc-script which will set up the routing and DNS for it, using OpenConnect is very simple. As root, run the following command:
openconnect --script /etc/vpnc/vpnc-script https://vpn.mycompany.com/

That should be it, if you have a password-based login. If you use certificates, you'll need to tell OpenConnect where to find the certificate with the -c option. You might need to steal the certificate from your Windows certificate store using a tool like Jailbreak.

To start with, you can ignore anything you see in the technical page about needing to patch OpenSSL so that DTLS works — you don't really need it, although it will make your connections much faster if you're experiencing packet loss between you and the VPN server. But you can worry about that later.

Valid XHTML 1.0! Valid CSS!