I tried the attached patch:<br><br>Here,s the output I got<br><br><span style="color: rgb(51, 51, 255);">root@localhost ~]# make KERNELSRC=/lib/modules/`uname -r`/build module minstall</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">make: *** No rule to make target `module'. Stop.</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">[root@localhost ~]# cd openswan/op</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">bash: cd: openswan/op: No such file or directory</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">[root@localhost ~]# cd openswan/openswan-3.0.06</span>
<br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">[root@localhost openswan-3.0.06]# make KERNELSRC=/lib/modules/`uname -r`/build module minstall</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
which: no git in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
Building module for a 2.6 kernel</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">which: no git in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">make[1]: Entering directory `/root/openswan/openswan-3.0.06'</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
which: no git in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
make[2]: Entering directory `/root/openswan/openswan-3.0.06'</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">make[2]: `/root/openswan/openswan-3.0.06/modobj26/Makefile' is up to date.
</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">make[2]: Leaving directory `/root/openswan/openswan-3.0.06'</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
make -C /lib/modules/2.6.18.8/build BUILDDIR=/root/openswan/openswan-3.0.06/modobj26 SUBDIRS=/root/openswan/openswan-3.0.06/modobj26 MODULE_DEF_INCLUDE=/root/openswan/openswan-3.0.06/packaging/linus/config-all.h MODULE_DEFCONFIG=/root/openswan/openswan-
3.0.06/linux/net/ipsec/defconfig MODULE_EXTRA_INCLUDE= ARCH=i386 modules</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">make[2]: Entering directory `/root/linux-<a href="http://2.6.18.8">
2.6.18.8</a>'</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">which: no git in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> Building modules, stage 2.</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> MODPOST</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">WARNING: "abort" [/root/openswan/openswan-3.0.06/modobj26/ipsec.ko] undefined!</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">make[2]: Leaving directory `/root/linux-
<a href="http://2.6.18.8">2.6.18.8</a>'</span><br style="color: rgb(51, 51, 255);"><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">=========================================================</span>
<br style="color: rgb(51, 51, 255);"><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">KLIPS26 module built successfully. </span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
ipsec.ko is in /root/openswan/openswan-3.0.06/modobj26</span><br style="color: rgb(51, 51, 255);"><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">-rw-r--r-- 1 root root 3800436 Jul 19 09:32 ipsec.ko
</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> text data bss dec hex filename</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> 270171 19752 5412 295335 481a7
ipsec.ko</span><br style="color: rgb(51, 51, 255);"><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">use make minstall as root to install it</span><br style="color: rgb(51, 51, 255);"><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">=========================================================</span><br style="color: rgb(51, 51, 255);"><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">make[1]: Leaving directory `/root/openswan/openswan-
3.0.06'</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">which: no git in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">make[1]: Entering directory `/root/openswan/openswan-3.0.06'</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
( OSMODLIB=`make -C /lib/modules/2.6.18.8/build -p help | ( sed -n -e '/^MODLIB/p' -e '/^MODLIB/q' ; cat > /dev/null ) | sed -e 's/^MODLIB[ :=]*\([^;]*\).*/\1/'` ; \</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> if [ -z "$OSMODLIB" ] ; then \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> OSMODLIB=`make -C /lib/modules/2.6.18.8/build -n -p modules_install | ( sed -n -e '/^MODLIB/p' -e '/^MODLIB/q' ; cat > /dev/null ) | sed -e 's/^MODLIB[ :=]*\([^;]*\).*/\1/'` ; \
</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> fi ; \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> if [ -z "$OSMODLIB" ] ; then \
</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> echo "No known place to install module. Aborting." ; \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
exit 93 ; \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> fi ; \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> set -x ; \
</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> mkdir -p $OSMODLIB/kernel/net/ipsec ; \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> cp /root/openswan/openswan-
3.0.06/modobj26/ipsec.ko $OSMODLIB/kernel/net/ipsec ; \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> if [ -f /sbin/depmod ] ; then depmod -a ; fi; \</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> if [ -n "net/ipsec" ] ; then \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> mkdir -p $OSMODLIB/kernel/net/ipsec ; \</span>
<br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> if [ -f $OSMODLIB/kernel/ipsec.ko -a -f $OSMODLIB/kernel/net/ipsec/ipsec.ko ] ; then \</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> echo "WARNING: two ipsec.ko modules found in $OSMODLIB/kernel:" ; \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
ls -l $OSMODLIB/kernel/ipsec.ko $OSMODLIB/kernel/net/ipsec/ipsec.ko ; \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> exit 1; \</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> fi ; \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> fi ; \</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
set -x ) ;</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">+ mkdir -p /lib/modules/2.6.18.8/kernel/net/ipsec</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
+ cp /root/openswan/openswan-3.0.06/modobj26/ipsec.ko /lib/modules/2.6.18.8/kernel/net/ipsec</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">+ '[' -f /sbin/depmod ']'</span>
<br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">+ depmod -a</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">+ '[' -n net/ipsec ']'</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">+ mkdir -p /lib/modules/2.6.18.8/kernel/net/ipsec</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">+ '[' -f /lib/modules/2.6.18.8/kernel/ipsec.ko -a -f /lib/modules/2.6.18.8/kernel/net/ipsec/ipsec.ko ']'
</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">+ set -x</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">make[1]: Leaving directory `/root/openswan/openswan-
3.0.06'</span><br style="color: rgb(51, 51, 255);"><br>But when i did <span style="font-weight: bold;">service ipsec start , </span>I got the following: Also, it takes a around a min to get the output after trying to start the service !
<br><br><br><span style="color: rgb(51, 51, 255);">root@localhost openswan-3.0.06]# service ipsec start</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">ipsec_setup: Starting Openswan IPsec
3.0.06GITGITGIT...</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">ipsec_setup: FATAL: Error inserting ipsec (/lib/modules/2.6.18.8/kernel/net/ipsec/ipsec.ko): Unknown symbol in module, or unknown parameter (see dmesg)
</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">ipsec_setup: calcgoo: warning: 2.6 kernel with kallsyms not supported yet</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
ipsec_setup: insmod /lib/modules/2.6.18.8/kernel/drivers/crypto/padlock.ko </span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">ipsec_setup: FATAL: Error inserting padlock (/lib/modules/2.6.18.8/kernel/drivers/crypto/padlock.ko): No such device
</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">ipsec_setup: insmod /lib/modules/2.6.18.8/kernel/net/ipsec/ipsec.ko </span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
ipsec_setup: FATAL: Error inserting ipsec (/lib/modules/2.6.18.8/kernel/net/ipsec/ipsec.ko): Unknown symbol in module, or unknown parameter (see dmesg)</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
ipsec_setup: kernel appears to lack IPsec support (<span style="font-weight: bold; color: rgb(0, 0, 0);">neither CONFIG_KLIPS or CONFIG_NET_KEY are set</span>)</span><br><br>Isn't the KLIPS stack set by above make ? <br>
I have attached both the files for reference !<br><br>Regards,<br>Ankit<br><br><br><br><div><span class="gmail_quote">On 7/18/07, <b class="gmail_sendername">David McCullough</b> <<a href="mailto:David_Mccullough@securecomputing.com">
David_Mccullough@securecomputing.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Jivin Ankit Parikh lays it down ...
<br>> I recompiled the kernel(ver <a href="http://2.6.18.8">2.6.18.8</a>) and did make<br>> KERNELSRC=/lib/modules/'uname -r'/build module minstall<br><br>Try the attached patch.<br><br>Cheers,<br>Davidm<br>
<br>--<br>David McCullough, <a href="mailto:david_mccullough@securecomputing.com">david_mccullough@securecomputing.com</a>, Ph:+61 734352815<br>Secure Computing - SnapGear <a href="http://www.uCdot.org">http://www.uCdot.org
</a> <a href="http://www.cyberguard.com">http://www.cyberguard.com</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Ankit Parikh<br>MS, Computer Science<br>University of Southern California<br>Los Angeles<br>California
<br>(M) 213.448.9394