OpenConnect VPN client.
Description: VPN client compatible with Cisco AnyConnect SSL VPN
Keywords: OpenConnect, AnyConnect, Cisco, VPN, SSLVPN, SSL VPN

Home Features Getting Started Mailing List / Help Contribute Technical stuff

OpenConnect VPN client

Building vpnc-script Connecting Manual

# Building OpenConnect

Unless you need to test the very latest version, you should not need to build OpenConnect for yourself. Your operating system should have a prepackaged version which you can install; if it does not then file a bug or enhancement request asking for one.

## Requirements

To build OpenConnect from its source code, you will need the following libraries and tools installed:

- `libxml2`
- `zlib`
- `OpenSSL`
- `pkg-config`

And optionally also:

- libproxy

OpenConnect supports the use of HTTP and SOCKS proxies to connect to the AnyConnect service, even without using libproxy. You may wish to use libproxy if you want OpenConnect to automatically use the appropriate proxies for your environment, without having to manually give it the `--proxy` argument on the command line.

## Building OpenConnect

If you checked the source code out from git rather from a release tarball then run this command first to prepare the build system:

- `./autogen.sh`

Then to build it, run the following commands:

- `./configure`
- `make`
- `make install` (If you want to install it)

If compilation fails, please make sure you have a working compiler and the development packages for all the required libraries mentioned above. If it still doesn't build, please send the full output in a plain-text mail to the mailing list.

## TUN/TAP driver

Mac OS X users will also need to install the Mac OS X tun/tap driver, and Solaris/OpenIndiana users will need the Solaris one. Note that for IPv6 support, the Solaris tun/tap driver from 16th Nov 2009 or newer is required.