[strongSwan] IKEv1 connection issues after upgrading from 4.4.1 to 4.5.0

Benoit Foucher benoit at bittrap.com
Fri Dec 3 09:11:04 CET 2010


After looking more carefully at the logs, there are also some suspicious traces for pluto:

pluto[11637]: | creating acquire event for policy === with reqid {16420}
pluto[11637]: | 
pluto[11637]: | *handling asynchronous events
pluto[11637]: | initiate on demand from to proto=0 state: fos_start because: whack
pluto[11637]: | find_connection: looking for policy for connection: ->
pluto[11637]: | find_connection: concluding with empty

ip xfrm state gives me the following:

src dst
        proto esp spi 0xc7c5af3a reqid 16420 mode tunnel
        replay-window 32 
        auth hmac(sha1) 0x47ff9f0112dac804a37a7f47f4371ac8b69219a8
        enc cbc(aes) 0xf1bedbfe7aabc07cda4a40b8fb934484
        sel src dst 
src dst
        proto esp spi 0xc500ee4a reqid 16420 mode tunnel
        replay-window 32 
        auth hmac(sha1) 0x413ed35699112a5a00599ee721ce72017f400bbb
        enc cbc(aes) 0x0b289980e478348eb8950bd4da54b8d3
        sel src dst 

It sounds like charon fails to retrieve the policy or are those traces expected?



On Dec 2, 2010, at 8:53 PM, Benoit Foucher wrote:

> Hi,
> I've upgraded from 4.4.1 to 4.5.0 today to workaround the issue where a given peer ID can't acquire multiple virtual IP addresses. However, my IKEv1 connections don't work anymore now. I did add keyexchange=ikev1 to make sure to use pluto. I've attached my config below.
> The tunnel is established but it seems there are some problems with routing. If I ping my strongSwan gateway from the peer network, the gateway correctly receives the ICMP packets (according to tcpdump on the gateway). However, the replies don't seem to be sent back over the tunnel (I don't see any ICMP reply with tcpdump on the gateway and the ping from the peer doesn't get any reply either).
> The only suspicious thing are the errors below which come from charon despite the fact that the tunnel is established with pluto. Could this be related to the change where pluto is now using netlink for setting up policies? Here are the messages:
> charon: 05[KNL] received an SADB_ACQUIRE with policy id 140489 but no matching policy found
> charon: 05[KNL] creating acquire job for policy === with reqid {0}
> charon: 03[CFG] trap not found, unable to acquire reqid 0
> My ipsec.conf for that connection:
> ---
> config setup
>        plutodebug=control
>        crlcheckinterval=180
>        strictcrlpolicy=no
>        charonstart=yes
>        plutostart=yes
>        nat_traversal=yes
> conn %default
>        ikelifetime=3h
>        lifetime=3h
>        rekeymargin=3m
>        keyingtries=1
>        left=%defaultroute
>        leftid=@gw.foo.com
>        leftsourceip=
>        leftsubnet=
>        leftcert=gw_cert.pem
>        leftfirewall=yes
>        rightfirewall=yes
> conn sj-gw
>        keyexchange=ikev1
>        right=%any
>        leftsubnet=
>        rightsubnet=
>        rightid=@sj-gw.foo.com
>        auto=add
> ----
> Any ideas what could be wrong? Is there some additional settings require for 4.5.0 now?
> Thanks for the help!
> Cheers,
> Benoit.

More information about the Users mailing list