[Openswan Users] OpenSWAN KLIPS not working

Sajith Kalathingal sajith.kalathingal at yahoo.in
Tue Jun 21 18:31:25 EDT 2011


I am trying to setup IPSec between 2 VM launched by OpenNebula. I'm using OpenSWAN for that. This is the ipsec.conf fileconfig setup        
    oe=off
    interfaces=%defaultroute
    protostack=klips

conn host-to-host

    left=10.141.0.135 # Local IP address
    connaddrfamily=ipv4
    leftrsasigkey=key
    right=10.141.0.132 # Remote IP address
    rightrsasigkey=key
    ike=aes128 # IKE algorithms (AES cipher)
    esp=aes128 # ESP algorithns (AES cipher)
    auto=add
    pfs=yes
    forceencaps=yes
    type=tunnel
I'm able to establish the connection with netkey but klips doesnt work.

ipsec barf shows

#71: ERROR: asynchronous network error report on eth0 (sport=500) for message to 10.141.0.132 port 500, complainant 10.141.0.135: No route to host [errno 113, origin ICMP type 3 code 1 (not authenticated)]

Tcpdump shows

22:50:20.592685 IP 10.141.0.132.isakmp > 10.141.0.135.isakmp: isakmp: phase 1 I ident
22:50:25.602182 ARP, Request who-has 10.141.0.135 tell 10.141.0.132, length 46
22:50:26.602082 ARP, Request who-has 10.141.0.135 tell 10.141.0.132, length 46
22:50:27.601985 ARP, Request who-has 10.141.0.135 tell 10.141.0.132, length 46
ipsec eroute shows

0          10.141.0.135/32    -> 10.141.0.132/32    => %trap

What could be the problem?



More information about the Users mailing list