[Openswan Users] net 2 net connection

Paul Wouters paul at xelerance.com
Thu Sep 15 18:11:10 CEST 2005


On Thu, 15 Sep 2005, Nigel Metheringham wrote:

> On Thu, 2005-09-15 at 11:19 +0100, William Man wrote:
>> insmod: error inserting
>> '/lib/modules/2.6.9-1.724_FC3/kernel/net/ipsec/ipsec.ko': -1 Invalid module
>> format
>>
>> the kernel i am using is 2.6.9-1.667, is there a version of ipsec klips for
>> this?  I installed the 2.6.9-1.724 which might be why it isn't
>> inserting.....
>
> Kernel modules should match the version of the running kernel.  Not
> doing this will lead to a world of pain.

yes, do not try that.

> I suggest you get the source rpm for that code, install that, edit the
> spec file to reflect the kernel version you are using, and rebuild the
> rpm.

You should not need to edit the spec file. It will use 'rpm -q kernel' to
find the latest version that is installed, and compile KLIPS for that.
If that fails, you can use:

rpmbuild -bb /usr/src/redhat/SPECS/openswan.spec --define 'buildklips 1' --define 'kversion 2.6.9-1.724'

Paul


More information about the Users mailing list