[strongSwan] unable to add SAD entry with SPI

徐筱莉 xuxiaoli86 at 126.com
Mon Aug 26 12:48:16 CEST 2013


Hi,
I try to establish IPSEC connection using IKEv2 (net-net psk), but I receive an error: unable to add SAD entry with SPI c2319240
What can causes this issue?
I have checked all Required Kernel Modules in my kernel mentioned in the answer in page:http://wiki.strongswan.org/projects/strongswan/wiki/KernelModules,but error is still exsit.
Thanks for ANY advice.

xuxl


1. kernel 2.6.26.x without patches
2. strongwans 5.1.0
3. IKEv2,net-net psk
4. logs:
Dec 12 01:24:46 freescale authpriv.info ipsec_starter[16902]: Starting strongSwan 5.1.0 IPsec [starter]...
Dec 12 01:24:46 freescale daemon.info charon: 00[DMN] Starting IKE charon daemon (strongSwan 5.1.0, Linux 2.6.35.3-571-gcca29a0-svn2348, armv5tejl)
Dec 12 01:24:47 freescale daemon.info charon: 00[CFG] loading ca certificates from '/etc/ipsec.d/cacerts'
Dec 12 01:24:47 freescale daemon.info charon: 00[CFG] loading aa certificates from '/etc/ipsec.d/aacerts'
Dec 12 01:24:47 freescale daemon.info charon: 00[CFG] loading ocsp signer certificates from '/etc/ipsec.d/ocspcerts'
Dec 12 01:24:47 freescale daemon.info charon: 00[CFG] loading attribute certificates from '/etc/ipsec.d/acerts'
Dec 12 01:24:47 freescale daemon.info charon: 00[CFG] loading crls from '/etc/ipsec.d/crls'
Dec 12 01:24:47 freescale daemon.info charon: 00[CFG] loading secrets from '/etc/ipsec.secrets'
Dec 12 01:24:47 freescale daemon.info charon: 00[CFG]   loaded IKE secret for @10.93.125.1 @10.96.211.106
Dec 12 01:24:47 freescale daemon.info charon: 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 stro
Dec 12 01:24:47 freescale daemon.info charon: 00[LIB] unable to load 6 plugin features (6 due to unmet dependencies)
Dec 12 01:24:47 freescale daemon.info charon: 00[JOB] spawning 16 worker threads
Dec 12 01:24:47 freescale authpriv.info ipsec_starter[16998]: charon (16999) started after 120 ms
Dec 12 01:24:47 freescale daemon.info charon: 06[CFG] received stroke: add connection 'net-net'
Dec 12 01:24:47 freescale daemon.info charon: 06[CFG] added configuration 'net-net'
Dec 12 01:25:02 freescale daemon.info charon: 08[NET] received packet: from 10.96.211.106[500] to 10.93.125.1[500] (708 bytes)
Dec 12 01:25:02 freescale daemon.info charon: 08[ENC] parsed IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) ]
Dec 12 01:25:02 freescale daemon.info charon: 08[IKE] 10.96.211.106 is initiating an IKE_SA
Dec 12 01:25:02 freescale authpriv.info charon: 08[IKE] 10.96.211.106 is initiating an IKE_SA
Dec 12 01:25:03 freescale daemon.info charon: 08[ENC] generating IKE_SA_INIT response 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(MULT_AUTH) ]
Dec 12 01:25:03 freescale daemon.info charon: 08[NET] sending packet: from 10.93.125.1[500] to 10.96.211.106[500] (440 bytes)
Dec 12 01:25:05 freescale daemon.info charon: 01[NET] received packet: from 10.96.211.106[500] to 10.93.125.1[500] (396 bytes)
Dec 12 01:25:05 freescale daemon.info charon: 01[ENC] parsed IKE_AUTH request 1 [ IDi N(INIT_CONTACT) IDr AUTH SA TSi TSr N(MULT_AUTH) N(EAP_ONLY) ]
Dec 12 01:25:05 freescale daemon.info charon: 01[CFG] looking for peer configs matching 10.93.125.1[10.93.125.1]...10.96.211.106[10.96.211.106]
Dec 12 01:25:05 freescale daemon.info charon: 01[CFG] selected peer config 'net-net'
Dec 12 01:25:05 freescale daemon.info charon: 01[IKE] authentication of '10.96.211.106' with pre-shared key successful
Dec 12 01:25:05 freescale daemon.info charon: 01[IKE] authentication of '10.93.125.1' (myself) with pre-shared key
Dec 12 01:25:05 freescale daemon.info charon: 01[IKE] IKE_SA net-net[1] established between 10.93.125.1[10.93.125.1]...10.96.211.106[10.96.211.106]
Dec 12 01:25:05 freescale authpriv.info charon: 01[IKE] IKE_SA net-net[1] established between 10.93.125.1[10.93.125.1]...10.96.211.106[10.96.211.106]
Dec 12 01:25:05 freescale daemon.info charon: 01[IKE] scheduling reauthentication in 3385s
Dec 12 01:25:05 freescale daemon.info charon: 01[IKE] maximum IKE_SA lifetime 3565s
Dec 12 01:25:05 freescale daemon.info charon: 01[KNL] received netlink error: Function not implemented (38)
Dec 12 01:25:05 freescale daemon.info charon: 01[KNL] unable to add SAD entry with SPI c2319240
Dec 12 01:25:05 freescale daemon.info charon: 01[KNL] received netlink error: Function not implemented (38)
Dec 12 01:25:05 freescale daemon.info charon: 01[KNL] unable to add SAD entry with SPI c780ac76
Dec 12 01:25:05 freescale daemon.info charon: 01[IKE] unable to install inbound and outbound IPsec SA (SAD) in kernel
Dec 12 01:25:05 freescale daemon.info charon: 01[IKE] failed to establish CHILD_SA, keeping IKE_SA
Dec 12 01:25:05 freescale daemon.info charon: 01[ENC] generating IKE_AUTH response 1 [ IDr AUTH N(AUTH_LFT) N(NO_PROP) ]
Dec 12 01:25:05 freescale daemon.info charon: 01[NET] sending packet: from 10.93.125.1[500] to 10.96.211.106[500] (140 bytes)
Dec 12 01:27:40 freescale user.info kernel: PHY: 0:00 - Link is Down
Dec 12 01:36:25 freescale user.info kernel: PHY: 0:00 - Link is Up - 100/Full
Dec 12 02:12:57 freescale user.info kernel: PHY: 0:00 - Link is Down





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20130826/fb7b722e/attachment.html>


More information about the Users mailing list