This document describes the steps to install and use Linux Openswan with your 2.4 kernel with. Used Linux Openswan code is the current CVS of the openswan-2 tree.
You must:
Next, I'll describe these steps.
You should have the gmp libraries installed. In Debian unstable, use apt-get install libgmp3 and apt-get install libgmp3-dev to install them.
To check out the latest source, follow the steps on http://www.openswan.com/development/cvs.php.
First, you should edit a file to make Openswan work quickly. In the openswan-2 directory, open Makefile.inc with your favourite editor. Search for the line:
{{{
USE_LWRES?=true
}}}
Change this line to:
{{{
USE_LWRES?=false
}}}
Save the file and close your editor.
Now, you should compile the userland tools. To compile these tools type:
{{{
make programs
}}}
If everything goes well, you'll get a shell and you don't see any errors on your screen.
To install the tools, type:
{{{
make install
}}}
If you want NAT-Traversal support, you need to patch the kernel source:
{{{
make nattpatch | (cd /usr/src/linux && patch -p1)
}}}
Next, build and install the ipsec.o module
{{{
make KERNELSRC=/usr/src/linux module minstall
}}}
DisableOE by adding {{{
include /etc/ipsec.d/examples/no_oe.conf
}}}
To your /etc/ipsec.conf file.
You should be finished now.