[strongSwan] [IKEv2 Mobike] error uninstalling route installed with policy

amysue.z at gmail.com amysue.z at gmail.com
Fri Aug 22 09:01:40 CEST 2014


I tried several times on centos 5.9 and 6.2 separately, every time, ping to
right subnets pass on centos 6.2 but fail on centos 5.9.
Is there anything about linux kernel version?

I also noticed that on strongswan started, there are plugins unable to
load, but I don't konw which plugins can't be loaded.

*Aug 22 11:29:35 00[LIB] loaded plugins: charon aes des rc2 sha1 sha2 md5
random nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12
pgp dnskey sshkey pem fips-prf gmp xcbc cmac hmac attr kernel-netlink
resolve socket-default stroke updown xauth-generic*
*Aug 22 11:29:35 00[LIB] unable to load 6 plugin features (6 due to unmet
dependencies)*

*Best Regards*
*Amy*



2014-08-22 14:11 GMT+08:00 <amysue.z at gmail.com>:

> Hi Tobias,
>
> I have tried the same steps on centos 6.2, There aren't *unable to copy
> replay state from old SAD entry *logs, and ping to right subnets pass
> after the pc interface is updated.
> Below is the pc information for centos 6.2
>
> *lsb_release -a*
> *LSB Version:
>  :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch*
> *Distributor ID: CentOS*
> *Description:    CentOS release 6.2 (Final) *
> *Release:        6.2*
> *Codename:       Final*
>
>
> *cat /proc/version*
> Linux version 2.6.32-220.el6.i686 (mockbuild at c6b18n3.bsys.dev.centos.org)
> (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Tue Dec 6
> 16:15:40 GMT 2011
>
> The strongswan version i*s**Linux strongSwan U5.0.2/K2.6.32-220.el6.i686*
>
> *Best Regards*
> *Amy*
>
>
> 2014-08-22 11:49 GMT+08:00 <amysue.z at gmail.com>:
>
> Hi Tobias,
>> Thanks for your reply
>>
>> My pc is Centos 5.9
>> *lsb_release -a*
>> *LSB Version:
>>  :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch*
>> *Distributor ID: CentOS*
>> *Description:    CentOS release 5.9 (Final)*
>> *Release:        5.9*
>> *Codename:       Final*
>>
>> *cat /proc/version*
>> *Linux version 2.6.18-348.1.1.el5 (mockbuild at builder17.centos.org
>> <mockbuild at builder17.centos.org>) (gcc version 4.1.2 20080704 (Red Hat
>> 4.1.2-54)) #1 SMP Tue Jan 22 16:24:03 EST 2013*
>>
>> The strongswan version i*s Linux strongSwan U5.1.0/K2.6.18-348.1.1.el5*
>>
>> I don't know how to add DBG statements to get_replay_state() for I don't
>> quite know the C language, could you give me some DBG statements?
>>
>> Regards
>> Amy
>>
>>
>>
>> 2014-08-22 0:30 GMT+08:00 Tobias Brunner <tobias at strongswan.org>:
>>
>> Hi Amy,
>>>
>>> > Is this error cause ping fail?
>>> > error uninstalling route installed with policy
>>> > 192.168.168.0/24 === 172.16.1.20/32 fwd
>>>
>>> That's normal.  Because the interface that was referenced in this route
>>> (eth1) disappeared, the route was already removed by the kernel when
>>> charon eventually tries to uninstall it, so you get this error/warning.
>>>
>>> Your main problem is this:
>>>
>>> > Aug 21 18:30:19 05[KNL] unable to copy replay state from old SAD entry
>>> > with SPI c84ed7a1
>>> > Aug 21 18:30:19 05[KNL] unable to copy replay state from old SAD entry
>>> > with SPI 0dbbeb51
>>>
>>> For some reason retrieving the current ESP sequence numbers for these
>>> SAs failed on your system.
>>>
>>> Because we can't update the IPsec SAs installed in the kernel directly,
>>> but have to delete and reinstall them instead, we need to copy the old
>>> replay state to the new SA.  If that fails the newly installed SAs can't
>>> be used as the sequence numbers aren't in-sync between the two peers.
>>> I'm not sure when this could actually fail.  The XFRM_MSG_GETAE query
>>> seems to have been successful (you'd have gotten an additional error
>>> otherwise), and I don't see how the kernel could not return the
>>> requested state without reporting an error.
>>>
>>> You could try to add some DBG statements in get_replay_state() in
>>> kernel_netlink_ipsec.c to see what's going on (e.g. what message types
>>> the kernel returns or what attribute types if out_aevent is assigned).
>>>
>>> What kernel version do you use?  What strongSwan version?  Any custom
>>> patches applied to either one?
>>>
>>> In any case we should probably check early on if get_replay_state()
>>> actually returned anything and fail if it did not so that the IPsec SAs
>>> could be rekeyed (we already use this fallback on other platforms, e.g.
>>> FreeBSD, where updating SAs is not possible at all).
>>>
>>> Regards,
>>> Tobias
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20140822/03a63909/attachment-0001.html>


More information about the Users mailing list