Home Recent Changes WikiHelp
Openswan /
Install
Login
Last modified: July 09, 2007, at 11:15 AM

Openswan.Install History

Hide minor edits - Show changes to markup

July 09, 2007, at 11:15 AM by adam.hawthorne - Added link to firewalling document
Changed line 150 from:
  • Firewalling. You need to allow UDP 500 and ESP (protocol 50) through your firewall. For more information, see our firewalling document.
to:
  • Firewalling. You need to allow UDP 500 and ESP (protocol 50) through your firewall. For more information, see our firewalling document.
November 26, 2006, at 09:41 PM by paul - rpm changes, version changes
Changed lines 15-20 from:

For Linux Kernels 2.0, 2.2 and 2.4, you may use Openswan 1.x.x

For Linux Kernels 2.4 and 2.6, you may use Openswan 2.x.x

to:

For Linux 2.0 or 2.2, use openswan-1.0.10 For Linux Kernels 2.4 and 2.6, use Openswan 2.4.x For FreeBSD, OpenBSD, NetBSD, and OSX, try openswan-2.5.x For the latest bleeding edge, try openswan-3.x.x

Changed lines 29-31 from:

RPMs are available here http://www.openswan.org/download/binaries/.

to:

RPMs are available with for most rpm based distributions, such as Fedora, RHEL/Centos and Suse. ATRPMS also build openswan rpms.

November 26, 2006, at 09:37 PM by paul - Fixed outdated build instructions
Changed lines 63-65 from:

KLIPS install for 2.0, 2.2, or 2.4 kernels

to:

KLIPS install for 2.0, 2.2, 2.4 or 2.6 kernels

Changed lines 70-71 from:
    make oldmod
    make minstall
to:
    export KERNELSRC=/usr/src/kernels/linux-2.6.18/
    make module
    make module_install
Changed lines 81-88 from:
        Note: Build and install kernel as normal, as you have modified
        the TCP/IP stack in the kernel, so it needs to be recompiled and
        installed.

        eg: cd /usr/src/linux && make dep bzImage install
to:
        cd /usr/src/linux-2.4
        make oldconfig [answer yes to NAT-T]
        make dep [linux < 2.6 only] 
        make bzImage [you must make a new kernel now]
        make modules modules_install

        Update your bootloader if neccessary.
Changed lines 96-97 from:
    make oldmod
    make minstall
to:
    patch -p1 -s < openswan-2.4.7-klips.patch
    patch -p1 -s < openswan-2.4.7-natt.patch
    make oldconfig [answer Y to klips and nat-t options]
    make dep [linux < 2.6 only]
    make bzImage
August 03, 2006, at 12:43 PM by mikes -
Changed lines 75-76 from:

If you want NAT-T support ([NATTraversal]), you need to patch your kernel and build a new bzImage. From the Openswan source directory:

to:

If you want NAT-T support (NATTraversal), you need to patch your kernel and build a new bzImage. From the Openswan source directory:

August 03, 2006, at 12:43 PM by mikes -
Changed lines 48-50 from:

Userland-only Install for 2.6 kernels

to:

Userland-only Install for 2.6 kernels

Changed lines 63-65 from:

KLIPS install for 2.0, 2.2, or 2.4 kernels

to:

KLIPS install for 2.0, 2.2, or 2.4 kernels

August 03, 2006, at 12:41 PM by mikes -
Changed lines 36-38 from:

[@

to:

[@

Changed line 53 from:

<pre>

to:

[@

Changed lines 57-60 from:

</pre>

to:

@]

Changed line 68 from:

<pre>

to:

[@

Changed lines 72-74 from:

</pre>

to:

@]

Changed line 92 from:

<pre>

to:

[@

Changed lines 96-98 from:

</pre>

to:

@]

Changed line 107 from:

<pre>

to:

[@

Changed lines 109-111 from:

</pre>

to:

@]

Changed line 118 from:

<pre>

to:

[@

Changed lines 120-123 from:

</pre>

to:

@]

Changed lines 126-127 from:

<pre>

to:

[@

Changed lines 134-137 from:

</pre>

to:

@]

August 03, 2006, at 11:35 AM by mikes -
Changed lines 28-30 from:

RPMs are available here ][http://www.openswan.org/download/binaries/]].

to:

RPMs are available here http://www.openswan.org/download/binaries/.

August 03, 2006, at 11:35 AM by mikes -
Changed lines 28-30 from:

RPMs are available here [http://www.openswan.org/download/binaries/].

to:

RPMs are available here ][http://www.openswan.org/download/binaries/]].

Changed line 36 from:

<pre>

to:

[@

Changed lines 41-43 from:

</pre>

to:

@]

August 03, 2006, at 11:34 AM by mikes -
Added lines 1-149:

Installing Openswan

This document will explain how to install Openswan. If your distribution comes with Openswan, we offer tips to get you started.

Requirements

  • Linux Kernel, either 2.0, 2.2, 2.4 or 2.6 based.
  • If building from source, libgmp development libraries.

Choose your version:

For Linux Kernels 2.0, 2.2 and 2.4, you may use Openswan 1.x.x

For Linux Kernels 2.4 and 2.6, you may use Openswan 2.x.x

There are two basic ways to get Openswan onto your system:

  • RPM install
  • Install from source

RPM install

RPMs are available here [http://www.openswan.org/download/binaries/].

Install from Source

As root, unpack your Openswan source somewhere (eg: /usr/src).

<pre>

    su
    mv openswan-2.#.#.tar.gz /usr/src
    cd /usr/src
    tar -xzf openswan-2.#.#.tar.gz

</pre>

Choose one of the methods below.

Userland-only Install for 2.6 kernels

Change to your new Openswan directory, and make and install the Openswan userland tools.

<pre>

    cd /usr/src/openswan-2.#.#
    make programs
    make install

</pre>

Now, start Openswan and test your install.

KLIPS install for 2.0, 2.2, or 2.4 kernels

To make a modular version of KLIPS, along with other Openswan programs you'll need, use the command sequence below. This will change to your new Openswan directory, make the Openswan module (and other stuff), and install it all.

<pre>

    cd /usr/src/openswan-2.#.#
    make oldmod
    make minstall

</pre>

If you want NAT-T support ([NATTraversal]), you need to patch your kernel and build a new bzImage. From the Openswan source directory:

(assumes kernel source is in /usr/src/linux-2.4)

        make nattpatch | (cd /usr/src/linux-2.4 && patch -p1 && make bzImage)

        Note: Build and install kernel as normal, as you have modified
        the TCP/IP stack in the kernel, so it needs to be recompiled and
        installed.

        eg: cd /usr/src/linux && make dep bzImage install

Start Openswan and test your install.

To link KLIPS statically into your kernel (using your old kernel settings), and install other Openswan components, do:

<pre>

    cd /usr/src/openswan-2.#.#
    make oldmod
    make minstall

</pre>

Reboot your system and test your install.

For other ways to compile KLIPS, see our Makefile.

Start Openswan and test your install

Bring Openswan up with:

<pre>

    service ipsec start

</pre>

This is not necessary if you've rebooted, as Openswan is added to runlevel 3 init scripts.

Test your install

To check that you have a successful install, run:

<pre>

    ipsec verify

</pre>

You should see at least:

<pre>

    Checking your system to see if IPsec got installed and started correctly
    Version check and ipsec on-path                             [OK]
    Checking for KLIPS support in kernel                        [OK]
    Checking for RSA private key (/etc/ipsec.secrets)           [OK]
    Checking that pluto is running                              [OK]

</pre>

If any of these first four checks fails, see our troubleshooting guide.

Making Openswan play well with others

There are at least a couple of things on your system that might interfere with Openswan, and now's a good time to check these:

  • Firewalling. You need to allow UDP 500 and ESP (protocol 50) through your firewall. For more information, see our firewalling document.
  • Network address translation. Do not NAT the packets you will be tunneling.

Configure for your needs

You'll need to configure Openswan for your local site. Have a look at our opportunism quickstart guide to see if that easy method is right for your needs. Or, see how to configure a network-to-network or Road Warrior style VPN.

Powered by PmWiki
view edit upload print history

Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0