strongSwan Installation Documentation

Distribution packages

There are currently packages for:

Compile yourself

Linux Kernel requirements

strongSwan should run on most distros' kernels. If you build your own kernel, include the required modules.

Building strongSwan

Since the release of strongSwan 4.x the GNU build system (Autotools) is used to build strongSwan.

There is a growing list of configure options available (note that many of these are enabled by default):

Refer to the list of plugins to learn more about the plugins enabled with the above options.

Note: Some plugins have dependencies on third-party libraries. To compile such plugins the header files of those libraries are required. Make sure these are installed on your system, e.g. by installing the appropriate -dev package on Debian-based systems. Otherwise, the ./configure script will complain that it can't find the library or header files.

The build procedure is as with any autotools project:

  1. Download strongSwan:
     wget http://download.strongswan.org/strongswan-x.x.x.tar.bz2
    
  2. Unpack the tarball:
     tar xjvf strongswan-x.x.x.tar.bz2; cd strongswan-x.x.x
    
  3. Configure strongSwan using some of the options above:
     ./configure --prefix=/usr --sysconfdir=/etc --<your-options>
    
  4. Build the sources and install the binaries as root:
     make
     sudo make install
    

Building strongSwan from the Git repository

To build strongSwan from the Git repository additional tools and steps are required, check source:HACKING for details.

Building strongSwan on other platforms

Configuration Management for strongSwan

If you use CM to manage software, there are some options available to help configure strongSwan.

Chef

Useful cookbooks include:

Puppet

Useful modules include: