[Openswan Users] IPSec authentication, but can't ping the desired network

Brian Chang brian.chang at xobni.com
Tue Jan 29 23:36:44 EST 2008


Hi everyone,

 

This should be a really simple configuration, I am looking to connect
two subnetworks (softlayer and 10.23.23.0/24), and I believe the
authentication is fine. However, I try to ping the network and it's a no
go. If anyone has any ideas, I'd be extremely grateful.

 

Here's what I get from ipsec auto status:

 

000 interface lo/lo ::1

000 interface lo/lo 127.0.0.1

000 interface lo/lo 127.0.0.1

000 interface eth0/eth0 66.92.2.246

000 interface eth0/eth0 66.92.2.246

000 interface eth1/eth1 10.23.23.1

000 interface eth1/eth1 10.23.23.1

000 %myid = (none)

000 debug none

000

000 algorithm ESP encrypt: id=2, name=ESP_DES, ivlen=8, keysizemin=64,
keysizemax=64

000 algorithm ESP encrypt: id=3, name=ESP_3DES, ivlen=8, keysizemin=192,
keysizemax=192

000 algorithm ESP encrypt: id=7, name=ESP_BLOWFISH, ivlen=8,
keysizemin=40, keysizemax=448

000 algorithm ESP encrypt: id=11, name=ESP_NULL, ivlen=0, keysizemin=0,
keysizemax=0

000 algorithm ESP encrypt: id=12, name=ESP_AES, ivlen=8, keysizemin=128,
keysizemax=256

000 algorithm ESP encrypt: id=252, name=ESP_SERPENT, ivlen=8,
keysizemin=128, keysizemax=256

000 algorithm ESP encrypt: id=253, name=ESP_TWOFISH, ivlen=8,
keysizemin=128, keysizemax=256

000 algorithm ESP auth attr: id=1, name=AUTH_ALGORITHM_HMAC_MD5,
keysizemin=128, keysizemax=128

000 algorithm ESP auth attr: id=2, name=AUTH_ALGORITHM_HMAC_SHA1,
keysizemin=160, keysizemax=160

000 algorithm ESP auth attr: id=5, name=AUTH_ALGORITHM_HMAC_SHA2_256,
keysizemin=256, keysizemax=256

000 algorithm ESP auth attr: id=251, name=(null), keysizemin=0,
keysizemax=0

000

000 algorithm IKE encrypt: id=5, name=OAKLEY_3DES_CBC, blocksize=8,
keydeflen=192

000 algorithm IKE encrypt: id=7, name=OAKLEY_AES_CBC, blocksize=16,
keydeflen=128

000 algorithm IKE hash: id=1, name=OAKLEY_MD5, hashsize=16

000 algorithm IKE hash: id=2, name=OAKLEY_SHA1, hashsize=20

000 algorithm IKE dh group: id=2, name=OAKLEY_GROUP_MODP1024, bits=1024

000 algorithm IKE dh group: id=5, name=OAKLEY_GROUP_MODP1536, bits=1536

000 algorithm IKE dh group: id=14, name=OAKLEY_GROUP_MODP2048, bits=2048

000 algorithm IKE dh group: id=15, name=OAKLEY_GROUP_MODP3072, bits=3072

000 algorithm IKE dh group: id=16, name=OAKLEY_GROUP_MODP4096, bits=4096

000 algorithm IKE dh group: id=17, name=OAKLEY_GROUP_MODP6144, bits=6144

000 algorithm IKE dh group: id=18, name=OAKLEY_GROUP_MODP8192, bits=8192

000

000 stats db_ops.c: {curr_cnt, total_cnt, maxsz} :context={0,0,0}
trans={0,0,0} attrs={0,0,0}

000

000 "softlayer":
10.23.23.0/24===66.92.2.246---66.92.2.1...10.12.132.1---38.96.196.93===1
0.12.132.64/26; erouted; eroute owner: #2

000 "softlayer":     srcip=unset; dstip=unset; srcup=ipsec _updown;
dstup=ipsec _updown;

000 "softlayer":   ike_life: 3600s; ipsec_life: 28800s; rekey_margin:
540s; rekey_fuzz: 100%; keyingtries: 0

000 "softlayer":   policy: PSK+ENCRYPT+TUNNEL+UP; prio: 24,26;
interface: eth0;

000 "softlayer":   newest ISAKMP SA: #1; newest IPsec SA: #2;

000 "softlayer":   IKE algorithm newest: 3DES_CBC_192-MD5-MODP1024

000

000 #2: "softlayer":500 STATE_QUICK_I2 (sent QI2, IPsec SA established);
EVENT_SA_REPLACE in 28196s; newest IPSEC; eroute owner

000 #2: "softlayer" esp.6ad0d110 at 38.96.196.93 esp.dca4fcdd at 66.92.2.246
tun.0 at 38.96.196.93 tun.0 at 66.92.2.246

000 #1: "softlayer":500 STATE_MAIN_I4 (ISAKMP SA established);
EVENT_SA_REPLACE in 2754s; newest ISAKMP; lastdpd=-1s(seq in:0 out:0)

 

Ipsec.conf:

version 2.0     

# basic configuration

config setup

        interfaces="ipsec0=eth0"

        nat_traversal=yes

 

include /etc/ipsec.d/*.conf

 

 

softlayer.conf:

conn softlayer

        type=tunnel

        authby=secret

        auto=start

        left=66.92.2.246

        leftnexthop=66.92.2.1

        leftsubnet=10.23.23.0/24

        right=38.96.196.93

        rightnexthop=10.12.132.1

        rightsubnet=10.12.132.64/26

        pfs=no

 

and of course my PSK in ipsec.secrets.

 

My routing table after everything is done looks like this:

Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface

10.12.132.64    66.92.2.1       255.255.255.192 UG    0      0        0
eth0

66.92.2.0       0.0.0.0         255.255.255.0   U     0      0        0
eth0

10.23.23.0      0.0.0.0         255.255.255.0   U     0      0        0
eth1

169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0
eth1

0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0
eth0

 

 

I'm about to ditch Openswan for a crappy Linksys router with vpn (ugh!),
so if anyone has ideas I'd be very happy :D

 

Brian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20080129/77488b5e/attachment-0001.html 


More information about the Users mailing list