| Installing Openswan |
|
|
|
| How To - Openswan | |
| Written by Christian Foronda | |
| Monday, 14 December 2009 13:49 | |
Requirements
Choose your version: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 There are two basic ways to get Openswan onto your system:
RPM installRPMs are available with for most rpm based distributions, such as Fedora, RHEL/Centos and Suse. ATRPMS also build openswan rpms. Install from SourceAs root, unpack your Openswan source somewhere (eg: /usr/src). su Choose one of the methods below. Userland-only Install for 2.6 kernelsChange to your new Openswan directory, and make and install the Openswan userland tools. cd /usr/src/openswan-2.#.# Now, start Openswan and test your install. KLIPS install for 2.0, 2.2, 2.4 or 2.6 kernelsTo 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. cd /usr/src/openswan-2.#.# 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) Start Openswan and test your install. To link KLIPS statically into your kernel (using your old kernel settings), and install other Openswan components, do: cd /usr/src/openswan-2.#.# Reboot your system and test your install. For other ways to compile KLIPS, see our Makefile. Start Openswan and test your installBring Openswan up with: service ipsec start This is not necessary if you've rebooted, as Openswan is added to runlevel 3 init scripts. Test your installTo check that you have a successful install, run: ipsec verify You should see at least: Checking your system to see if IPsec got installed and started correctly If any of these first four checks fails, see our troubleshooting guide. Making Openswan play well with othersThere are at least a couple of things on your system that might interfere with Openswan, and now's a good time to check these:
Configure for your needsYou'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. Reference: Similar articles
|
|
| Last Updated on Saturday, 16 January 2010 12:03 |


