Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Building And Integrating Virtual Private Networks With Openswan (2006).pdf
Скачиваний:
73
Добавлен:
17.08.2013
Размер:
4.74 Mб
Скачать

 

 

Chapter 3

 

 

 

 

Option name

Description

 

 

 

 

LDAP_VERSION

Which version of LDAP libraries to link against. Defaults to 3, but 2 is also supported.

 

 

Note that these numbers do not correspond with the number in the openldap version.

 

 

openldap-2.2 supports LDAP version 3.

 

#-DUSE_1DES

The # character should be removed to enable 1DES encryption in Pluto. As of

 

 

openswan-2.4 and up, this option is controlled in Makefile.inc's USE_WEAKSTUFF

 

 

and USE_BROKEN variables

 

-DLEAK_DETECTIVE

This define helps to find memory leaks. If Pluto is taking up all of your memory, and

 

 

you suspect a memory leak, then define this option. Start Openswan and when it has

 

 

consumed a large amount of memory, but before you run out of it, gracefully shut

 

 

down Openswan. Memory debug information will then be logged through syslog.

 

 

 

Compiling and Installing

Building the userland tools now simply requires two commands:

#make programs

#make install

If you are building the userland for the host system itself, it is now ready to be used. If you are building Openswan for another machine, your installation can be found in $DESTDIR.

If you are going to use NETKEY, and you were compiling Openswan for the host system itself, you can skip the rest of this chapter and go to the next chapter where we configure Openswan.

If the compilation failed, verify that you are using the latest stable release of Openswan. Double check your options in Makefile.inc. Chapter 12 and Appendix C lists some common problems and resources where you may find additional information that might be useful.

Binary Installation of KLIPS

If you want to install KLIPS using a binary package, you must be running a kernel for which a binary package of KLIPS has been built. If you are running your own compiled kernel, you cannot install a binary package of KLIPS. The Openswan project precompiles binary KLIPS packages for a number of known binary kernels as shipped by the major distributions. Note that these packages are also different depending on the CPU you are using; or rather the CPU model of the kernel of the kernel package you are currently using.

You can determine which kernel packages are installed on your system using the package manager.

# rpm -q kernel kernel-smp

kernel-2.6.7-1.478

kernel-2.6.8-1.520

Here, two kernel packages have been installed. Most packages don't allow multiple versions to be installed simultaneously, but the kernel is an exception; you might need to fall back to the older kernel if the new one doesn't boot your system. The bootloader (grub or lilo) then lets you choose between the two. To see which is currently running, use the uname command:

63