[Openswan Users] Openswan-3.0.06: connection established but no `ping` replies received

KokHow.Teh at infineon.com KokHow.Teh at infineon.com
Sat Nov 10 07:32:42 EST 2007


Hi;
	Somehow, my device-A does not receive any `ping` reply from
device-B. At device-A (`ping` end), ipsec0 interface has Tx counters but
Rx counters are zero. At device-B the receive end, both counters are
zero. Any advice and insight is appreciated.

Regards,
KH

Device-A (`ping` end):

[root at Danube:~ 22]# cat /etc/ipsec.conf
version 2.0
config setup
conn ifx
  left=10.10.10.1
  leftsubnet=10.10.10.0/255.255.255.0
  leftnexthop=%defaultroute
  right=10.10.10.2
  rightsubnet=10.10.10.0/255.255.255.0
  ike=aes-md5
  esp=aes-md5
  authby=secret
  auto=add
[root at Danube:~ 23]# cat /var/run/pluto/ipsec.info
defaultroutephys=eth0
defaultroutevirt=ipsec0
defaultrouteaddr=10.10.10.1
defaultroutenexthop=10.10.10.2
[root at Danube:~ 24]# ipsec auto --status
000 interface ipsec0/eth0 10.10.10.1
000 %myid = (none)
000 debug none
000
000 algorithm ESP encrypt: id=2, name=ESP_DES, ivlen=64, keysizemin=64,
keysizemax=64
000 algorithm ESP encrypt: id=3, name=ESP_3DES, ivlen=64,
keysizemin=192, keysizemax=192
000 algorithm ESP encrypt: id=12, name=ESP_AES, ivlen=128,
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=9, name=AUTH_ALGORITHM_AES_CBC,
keysizemin=128, keysizemax=128
000 algorithm IPCOMP compress attr: id=2, name=IPCOMP_DEFLATE
000 algorithm IPCOMP compress attr: id=3, name=IPCOMP_LZS
000
000 algorithm IKE encrypt: id=3, name=OAKLEY_BLOWFISH_CBC, blocksize=8,
keydeflen=128
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 encrypt: id=65004, name=OAKLEY_SERPENT_CBC,
blocksize=16, keydeflen=128
000 algorithm IKE encrypt: id=65005, name=OAKLEY_TWOFISH_CBC,
blocksize=16, keydeflen=128
000 algorithm IKE encrypt: id=65289, name=OAKLEY_TWOFISH_CBC_SSH,
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 hash: id=4, name=OAKLEY_SHA2_256, hashsize=32
000 algorithm IKE hash: id=6, name=OAKLEY_SHA2_512, hashsize=64
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: {curr_cnt, total_cnt, maxsz} :context={0,2,52}
trans={0,2,216} attrs={0,2,144}
000
000 "ifx": 10.10.10.0/24===10.10.10.1...10.10.10.2===10.10.10.0/24;
erouted; eroute owner: #2
000 "ifx":     srcip=unset; dstip=unset;
000 "ifx":   ike_life: 3600s; ipsec_life: 28800s; rekey_margin: 540s;
rekey_fuzz: 100%; keyingtries: 3
000 "ifx":   policy: PSK+ENCRYPT+TUNNEL+PFS+UP+lKOD+rKOD; prio: 24,24;
interface: eth0;
000 "ifx":   newest ISAKMP SA: #1; newest IPsec SA: #2;
000 "ifx":   IKE algorithms wanted: AES_CBC(7)_000-MD5(1)-5,
AES_CBC(7)_000-MD5(1)-2, flags=-strict
000 "ifx":   IKE algorithms found:  AES_CBC(7)_128-MD5(1)_128-5,
AES_CBC(7)_128-MD5(1)_128-2,
000 "ifx":   IKE algorithm newest: AES_CBC_128-MD5-MODP1536
000 "ifx":   ESP algorithms wanted: MD5(1), flags=-strict
000 "ifx":   ESP algorithms loaded: AES(12)_128-MD5(1)_128-NONE
000 "ifx":   ESP algorithm newest: AES_256-HMAC_MD5; pfsgroup=<Phase1>
000
000 #2: "ifx":500 STATE_QUICK_I2 (sent QI2, IPsec SA established);
EVENT_SA_EXPIRE in 28575s; newest IPSEC; eroute owner; isakmp#1; idle;
000 #2: "ifx" used 151s ago; esp.d5422bcb at 10.10.10.2
esp.9acd0a96 at 10.10.10.1 tun.1001 at 10.10.10.2 tun.1004 at 10.10.10.1
000 #1: "ifx":500 STATE_MAIN_I4 (ISAKMP SA established); EVENT_SA_EXPIRE
in 3344s; newest ISAKMP; lastdpd=-1s(seq in:0 out:0); idle; import:admin
init
iate
000
[root at Danube:~ 25]# ipsec eroute
18         10.10.10.0/24      -> 10.10.10.0/24      =>
tun0x1001 at 10.10.10.2
[root at Danube:~ 26]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:E1:93:01:02:41
          inet addr:10.10.10.1  Bcast:10.10.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2712 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:184624 (180.2 KiB)  TX bytes:3854 (3.7 KiB)

ipsec0    Link encap:Ethernet  HWaddr 00:E1:93:01:02:41
          inet addr:10.10.10.1  Mask:255.255.255.0
          UP RUNNING NOARP  MTU:16260  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          RX bytes:0 (0.0 B)  TX bytes:2106 (2.0 KiB)

ipsec1    Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:0  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

teql0     Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

tunl0     Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-10-00-00-00-00-00-00-00-00-00
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

[root at Danube:~ 27]#


More information about the Users mailing list