Home Recent Changes WikiHelp
BuildingFor2 /
6FromCVS
Login
Last modified: August 04, 2006, at 12:40 PM

This page is about building for 2.6 kernels that have the 26sec code in them.

Building for 2.6 kernels with 26sec code

This document describes the steps to install and use Linux Openswan with your 2.6 kernel with 26sec code. Used Linux Openswan code is the current CVS of the openswan-2 tree.

Requirements

You must:

Next, I'll describe these steps.

Have the correct libraries installed

You should have the gmp libraries installed. In Debian unstable, use apt-get install libgmp3 and apt-get install libgmp3-dev to install them.

Check out the latest openswan-2 source from CVS

To check out the latest source, follow the steps on http://www.openswan.org/development/cvs.php.

Fix the source

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:

LWRES

{{{

   USE_LWRES?=true

}}}

Change this line to:

{{{

   USE_LWRES?=false

}}}

Save the file and close your editor.

Compile the source and install the tools

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

}}}

Edit ipsec.conf

Open /etc/ipsec.conf with your favourite editor. Add the following line:

{{{

   include /etc/ipsec.d/examples/no_oe.conf;

}}}

Now add connections.

You should be finished now.

Powered by PmWiki
view edit upload print history