[Openswan Users] Patching the kernel with openswan
Hugo Sousa
sousa.hugo at netcabo.pt
Wed Jan 21 17:45:24 CET 2004
This is how I patch the Kernel (in RH9)
- I Install GMP
./configure --prefix=/usr/local
make
make install
- also MODUTILS
./configure --prefix=/
make
Recompiling the KERNEL
cd /usr/src/linux
make mrproper
make menuconfig
make dep
make clean
make bzImage (usa compressao bzip2)
make modules
make modules_install
- OPENSWAN INSTALL
cd /root/openswan
make menugo
cd /usr/src/linux
make modules_install
I copy the bzImage to /boot
If everything OK I edit lilo.conf and add
image=/boot/vmlinuz-ipsec
label=linux-vpn
read-only
Also I Create the RAM drive...
mkinitrd /boot/initrd-2.x.img 2.x
******************
Is there any faster/better way to do this???
Please helpe me because I loose all of my time trying to patch the kernel
then testing the tunnels! :/
Regards,
Hugo Sousa
SysAdmin / NetworkAdmin
http://www.netsystems.pt
Portugal
-----Original Message-----
From: Paul Wouters [mailto:paul at xtdnet.nl]
Sent: quarta-feira, 21 de Janeiro de 2004 17:28
To: Hugo Sousa
Cc: users at lists.openswan.org
Subject: Re: [Openswan Users] Patching the kernel with openswan
On Wed, 21 Jan 2004, Hugo Sousa wrote:
> Hi, I need a little hint on the part of compiling openswan...
>
> This is what the README tells to do...
>
> iii) In the Openswan source dir:
> Quick way: "make menugo && make minstall"
> Step by step way:
> "make insert && make oldmod && make programs && make minstall"
Guess the readme should change "oldmod" for "module".
> When I use the Quick Way... after make menugo .. it ends with a few
> errors and the bzImage file is not generated using the step by step...
> the bzImage is also not generated
Without the actual errors, we can't really help you further. It could be
that you already have some *swan applied to your kernel tree, or that some
other kernel bit is giving you troubles.
> What are the corrects steps to patch the kernel?
"make module minstall" is all you should need.
Paul
More information about the Users
mailing list