- * Building strongSwan with a Linux 2.4 kernel requires the presence of the
- matching kernel sources referenced via the symbolic link /usr/src/linux.
- The use of the vanilla kernel sources from ftp.kernel.org is strongly
- recommended.
-
- Before building strongSwan you must have compiled the kernel sources at
- least once:
-
- make menuconfig; make dep; make bzImage; make modules
-
- * Now change into the strongswan-2.x.x source directory.
-
- First uncomment any desired compile options in "programs/pluto/Makefile"
- (see section 2. Optional packages).
-
- Then in the top source directory type
-
- make menumod
-
- This command applies an ESP_IN_UDP encapsulation patch which is required
- for NAT-Traversal to the kernel sources.
-
- In the "Networking options" menu set
-
- <M> IP Security Protocol (strongSwan IPsec)
-
- in order to build KLIPS as a loadable kernel module "ipsec.o". Do not
- forget to save the modified configuration file when leaving "menumod".
-
- The strongSwan userland programs are now automatically built and
- installed, whereas the ipsec.o kernel module and the crypto modules
- are only built and must be installed with the command
-
- make minstall
-
- * If you intend to use the NAT-Traversal feature then you must compile the
- patched kernel sources again by executing
-
- make bzImage
-
- and then install and boot the modified kernel.
-
- * Next add your connections to "/etc/ipsec.conf" and start strongSwan with
-
- ipsec setup start
-
-
-4. Updating strongSwan with a Linux 2.4 kernel
- -------------------------------------------
-
- * If you have already successfully installed strongSwan and want to update
- to a newer version then the following shortcut can be taken:
-
- First uncomment any desired compile options in "programs/pluto/Makefile"
- (see section 2. Optional packages).
-
- Then in the strongwan-2.x.x top directory type
-
- make programs; make install
-
- followed by
-
- make module; make minstall
-
- * You can then start the updated strongSwan version with
-
- ipsec setup restart
-
-
-5. Building strongSwan with a Linux 2.6 kernel
- -------------------------------------------