[strongSwan] ipsec status shows connection is established but ping does not work / stuck

Shukla, Sanjay Sanjay.Shukla at ipc.com
Tue Jun 19 15:42:07 CEST 2012


Hello,

Here is some more info, ip xrfrm state and policy. I see see two sets of SA's. Please provide you invaluable feedback.. what causes this state and any suggested tunning.


on 182 - ip xfrm state
10.204.74.182 10.205.232.89
        esp mode=transport spi=3433950253(0xccadec2d) reqid=2(0x00000002)
        E: aes-cbc  3e1a86db 886b1bf1 d0f2e614 8fa5c170
        A: hmac-sha1  208a9219 9f5ec0ea d68633ff 184a6747 de79a18e
        seq=0x00000000 replay=32 flags=0x00000000 state=mature
        created: Jun 18 22:27:24 2012   current: Jun 18 22:49:03 2012
        diff: 1299(s)   hard: 3600(s)   soft: 2714(s)
        last: Jun 18 22:27:25 2012      hard: 0(s)      soft: 0(s)
        current: 551520(bytes)  hard: 0(bytes)  soft: 0(bytes)
        allocated: 5300 hard: 0 soft: 0
        sadb_seq=2 pid=740 refcnt=0
10.204.74.182 10.205.232.89
        esp mode=transport spi=3437636052(0xcce629d4) reqid=3(0x00000003)
        E: aes-cbc  41e378fb a653e524 a29d32cc d548f422
        A: hmac-sha1  28156309 8ca4b124 e04d18b1 e1dc6c3c efe835af
        seq=0x00000000 replay=32 flags=0x00000000 state=mature
        created: Jun 18 22:23:40 2012   current: Jun 18 22:49:03 2012
        diff: 1523(s)   hard: 3600(s)   soft: 2824(s)
        last:                           hard: 0(s)      soft: 0(s)
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)
        allocated: 0    hard: 0 soft: 0
        sadb_seq=1 pid=740 refcnt=0

        10.205.232.89 10.204.74.182
        esp mode=transport spi=3260090056(0xc25106c8) reqid=2(0x00000002)
        E: aes-cbc  56bcc429 43593aa5 495a3cb0 17a9ca54
        A: hmac-sha1  82fd319f abeb8f75 8b75324f bcfd1171 9b41d32b
        seq=0x00000000 replay=32 flags=0x00000000 state=mature
        created: Jun 18 22:27:24 2012   current: Jun 18 22:56:22 2012
        diff: 1738(s)   hard: 3600(s)   soft: 2966(s)
        last:                           hard: 0(s)      soft: 0(s)
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)
        allocated: 0    hard: 0 soft: 0
        sadb_seq=9 pid=15515 refcnt=0
10.205.232.89 10.204.74.182
        esp mode=transport spi=3474396115(0xcf1713d3) reqid=3(0x00000003)
        E: aes-cbc  05a2ab20 06ad0e31 8b0b8fc4 b84da731
        A: hmac-sha1  81db062d be36b4a4 ff0a43a2 ccf14161 f33d6323
        seq=0x00000000 replay=32 flags=0x00000000 state=mature
        created: Jun 18 22:23:40 2012   current: Jun 18 22:56:22 2012
        diff: 1962(s)   hard: 3600(s)   soft: 2825(s)
        last: Jun 18 22:23:41 2012      hard: 0(s)      soft: 0(s)
        current: 278920(bytes)  hard: 0(bytes)  soft: 0(bytes)
        allocated: 6952 hard: 0 soft: 0
        sadb_seq=8 pid=15515 refcnt=0

        --

on 89 - ip xfrm state

10.205.232.89 10.204.74.182
        esp mode=transport spi=3260090056(0xc25106c8) reqid=3(0x00000003)
        E: aes-cbc  56bcc429 43593aa5 495a3cb0 17a9ca54
        A: hmac-sha1  82fd319f abeb8f75 8b75324f bcfd1171 9b41d32b
        seq=0x00000000 replay=32 flags=0x00000000 state=mature
        created: Jun 18 22:27:24 2012   current: Jun 18 22:46:35 2012
        diff: 1151(s)   hard: 3600(s)   soft: 3041(s)
        last:                           hard: 0(s)      soft: 0(s)
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)
        allocated: 0    hard: 0 soft: 0
        sadb_seq=20 pid=20818 refcnt=0
10.205.232.89 10.204.74.182
        esp mode=transport spi=3474396115(0xcf1713d3) reqid=2(0x00000002)
        E: aes-cbc  05a2ab20 06ad0e31 8b0b8fc4 b84da731
        A: hmac-sha1  81db062d be36b4a4 ff0a43a2 ccf14161 f33d6323
        seq=0x00000000 replay=32 flags=0x00000000 state=mature
        created: Jun 18 22:23:40 2012   current: Jun 18 22:46:35 2012
        diff: 1375(s)   hard: 3600(s)   soft: 2995(s)
        last: Jun 18 22:23:41 2012      hard: 0(s)      soft: 0(s)
        current: 508536(bytes)  hard: 0(bytes)  soft: 0(bytes)
        allocated: 4879 hard: 0 soft: 0
        sadb_seq=19 pid=20818 refcnt=0
        0.204.74.182 10.205.232.89
        esp mode=transport spi=3433950253(0xccadec2d) reqid=3(0x00000003)
        E: aes-cbc  3e1a86db 886b1bf1 d0f2e614 8fa5c170
        A: hmac-sha1  208a9219 9f5ec0ea d68633ff 184a6747 de79a18e
        seq=0x00000000 replay=32 flags=0x00000000 state=mature
        created: Jun 18 22:27:24 2012   current: Jun 18 22:56:13 2012
        diff: 1729(s)   hard: 3600(s)   soft: 2657(s)
        last: Jun 18 22:27:25 2012      hard: 0(s)      soft: 0(s)
        current: 282400(bytes)  hard: 0(bytes)  soft: 0(bytes)
        allocated: 7054 hard: 0 soft: 0
        sadb_seq=8 pid=16192 refcnt=0
10.204.74.182 10.205.232.89
        esp mode=transport spi=3437636052(0xcce629d4) reqid=2(0x00000002)
        E: aes-cbc  41e378fb a653e524 a29d32cc d548f422
        A: hmac-sha1  28156309 8ca4b124 e04d18b1 e1dc6c3c efe835af
        seq=0x00000000 replay=32 flags=0x00000000 state=mature
        created: Jun 18 22:23:40 2012   current: Jun 18 22:56:13 2012
        diff: 1953(s)   hard: 3600(s)   soft: 3039(s)
        last:                           hard: 0(s)      soft: 0(s)
        current: 0(bytes)       hard: 0(bytes)  soft: 0(bytes)
        allocated: 0    hard: 0 soft: 0
        sadb_seq=7 pid=16192 refcnt=0


on 182 - ip xfrm policy

src 10.205.232.89/32 dst 10.204.74.182/32
        dir in priority 1795
        tmpl src 0.0.0.0 dst 0.0.0.0
                proto esp reqid 2 mode transport
src 10.204.74.182/32 dst 10.205.232.89/32
        dir out priority 1795
        tmpl src 0.0.0.0 dst 0.0.0.0
                proto esp reqid 2 mode transport

on 89 - ip xfrm policy
src 10.204.74.182/32 dst 10.205.232.89/32
        dir in priority 1795
        tmpl src 0.0.0.0 dst 0.0.0.0
                proto esp reqid 2 mode transport
src 10.205.232.89/32 dst 10.204.74.182/32
        dir out priority 1795
        tmpl src 0.0.0.0 dst 0.0.0.0
                proto esp reqid 2 mode transport

From: users-bounces+sanjay.shukla=ipc.com at lists.strongswan.org [mailto:users-bounces+sanjay.shukla=ipc.com at lists.strongswan.org] On Behalf Of Shukla, Sanjay
Sent: Monday, June 18, 2012 6:51 PM
To: users at lists.strongswan.org
Subject: [strongSwan] ipsec status shows connection is established but ping does not work / stuck

ipsec status shows connection is established but ping does not work / stuck, how can I debug this further ? how do I determine the problem here ?

-sanjay

[root at ffd-ipsec-180 ~]# ipsec statusall
Status of IKEv2 charon daemon (strongSwan 4.6.2):
  uptime: 85 minutes, since Jun 18 17:24:52 2012
  malloc: sbrk 622592, mmap 0, used 439696, free 182896
  worker threads: 8 of 16 idle, 7/1/0/0 working, job queue: 0/0/0/0, scheduled: 194
  loaded plugins: aes des sha1 sha2 md5 random x509 revocation constraints pubkey pkcs1 pkcs8 pgp pem fips-prf gmp xcbc hmac attr kernel-netlink resolve socket-raw stroke updown
Listening IP addresses:
  10.204.74.180
  10.204.74.182
Connections:
VIP_VIP_10.205.232.89:  10.204.74.182...10.205.232.89, dpddelay=30s
VIP_VIP_10.205.232.89:   local:  [10.204.74.182] uses public key authentication
VIP_VIP_10.205.232.89:    cert:  "C=US, ST=CT, L=Fairfield, O=IPC, CN=10.204.74.182"
VIP_VIP_10.205.232.89:   remote: [%any] uses any authentication
VIP_VIP_10.205.232.89:   child:  dynamic === dynamic TRANSPORT, dpdaction=restart
VIP_VIP_10.205.232.89[5]: ESTABLISHED 79 minutes ago, 10.204.74.182[10.204.74.182]...10.205.232.89[10.205.232.89]
VIP_VIP_10.205.232.89[5]: IKE SPIs: 6fdd015c0d95375a_i* 8643abee4f1f4cf1_r, rekeying in 83 minutes
VIP_VIP_10.205.232.89[5]: IKE proposal: AES_CBC_128/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_2048
VIP_VIP_10.205.232.89{2}:  INSTALLED, TRANSPORT, ESP SPIs: c5bd8da5_i cb1dc544_o
VIP_VIP_10.205.232.89{2}:  AES_CBC_128/HMAC_SHA1_96, 0 bytes_i, 963376 bytes_o (0s ago), rekeying in 12 minutes
VIP_VIP_10.205.232.89{2}:   10.204.74.182/32 === 10.205.232.89/32
VIP_VIP_10.205.232.89[8]: ESTABLISHED 79 minutes ago, 10.204.74.182[10.204.74.182]...10.205.232.89[10.205.232.89]
VIP_VIP_10.205.232.89[8]: IKE SPIs: efcd2d4ff0d6fa8a_i b7ea9e91ab8e70f8_r*, rekeying in 87 minutes
VIP_VIP_10.205.232.89[8]: IKE proposal: AES_CBC_128/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_2048
VIP_VIP_10.205.232.89{3}:  INSTALLED, TRANSPORT, ESP SPIs: c2e4e746_i cd9b6cd6_o
VIP_VIP_10.205.232.89{3}:  AES_CBC_128/HMAC_SHA1_96, 47432 bytes_i (1s ago), 0 bytes_o, rekeying in 13 minutes
VIP_VIP_10.205.232.89{3}:   10.204.74.182/32 === 10.205.232.89/32
VIP_VIP_10.204.74.190[89]: ESTABLISHED 2 minutes ago, 10.204.74.182[10.204.74.182]...10.204.74.190[10.204.74.190]
VIP_VIP_10.204.74.190[89]: IKE SPIs: ed04d602820d44e9_i* 16a268916130f735_r, rekeying in 2 hours
VIP_VIP_10.204.74.190[89]: IKE proposal: AES_CBC_128/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_2048


[root at mh-ums-sec1 ~]# ipsec statusall
Status of IKEv2 charon daemon (strongSwan 4.6.2):
  uptime: 85 minutes, since Jun 18 17:24:52 2012
  malloc: sbrk 622592, mmap 0, used 453216, free 169376
  worker threads: 8 of 16 idle, 7/1/0/0 working, job queue: 0/0/0/0, scheduled: 199
  loaded plugins: aes des sha1 sha2 md5 random x509 revocation constraints pubkey pkcs1 pkcs8 pgp pem fips-prf gmp xcbc hmac attr kernel-netlink resolve socket-raw stroke updown
Listening IP addresses:
  10.205.232.90
  10.205.232.89
Connections:
VIP_VIP_10.204.74.182:  10.205.232.89...10.204.74.182, dpddelay=30s
VIP_VIP_10.204.74.182:   local:  [10.205.232.89] uses public key authentication
VIP_VIP_10.204.74.182:    cert:  "C=US, ST=CT, L=Fairfield, O=IPC, CN=10.205.232.89"
VIP_VIP_10.204.74.182:   remote: [%any] uses any authentication
VIP_VIP_10.204.74.182:   child:  dynamic === dynamic TRANSPORT, dpdaction=restart
VIP_VIP_10.204.74.182[6]: ESTABLISHED 81 minutes ago, 10.205.232.89[10.205.232.89]...10.204.74.182[10.204.74.182]
VIP_VIP_10.204.74.182[6]: IKE SPIs: 6fdd015c0d95375a_i 8643abee4f1f4cf1_r*, rekeying in 81 minutes
VIP_VIP_10.204.74.182[6]: IKE proposal: AES_CBC_128/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_2048
VIP_VIP_10.204.74.182{3}:  INSTALLED, TRANSPORT, ESP SPIs: cb1dc544_i c5bd8da5_o
VIP_VIP_10.204.74.182{3}:  AES_CBC_128/HMAC_SHA1_96, 383928 bytes_i (0s ago), 0 bytes_o, rekeying in 9 minutes
VIP_VIP_10.204.74.182{3}:   10.205.232.89/32 === 10.204.74.182/32
VIP_VIP_10.204.74.182[5]: ESTABLISHED 81 minutes ago, 10.205.232.89[10.205.232.89]...10.204.74.182[10.204.74.182]
VIP_VIP_10.204.74.182[5]: IKE SPIs: efcd2d4ff0d6fa8a_i* b7ea9e91ab8e70f8_r, rekeying in 89 minutes
VIP_VIP_10.204.74.182[5]: IKE proposal: AES_CBC_128/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_2048
VIP_VIP_10.204.74.182{2}:  INSTALLED, TRANSPORT, ESP SPIs: cd9b6cd6_i c2e4e746_o
VIP_VIP_10.204.74.182{2}:  AES_CBC_128/HMAC_SHA1_96, 0 bytes_i, 124288 bytes_o (1s ago), rekeying in 3 minutes
VIP_VIP_10.204.74.182{2}:   10.205.232.89/32 === 10.204.74.182/32

--


[root at mh-ums-sec1 ~]# !pi
ping -I10.205.232.89 10.204.74.182
PING 10.204.74.182 (10.204.74.182) from 10.205.232.89 : 56(84) bytes of data.

--- 10.204.74.182 ping statistics ---
18 packets transmitted, 0 received, 100% packet loss, time 17003ms

[root at ffd-ipsec-180 ~]# !pi
ping -I10.204.74.182 10.205.232.89
PING 10.205.232.89 (10.205.232.89) from 10.204.74.182 : 56(84) bytes of data.

--- 10.205.232.89 ping statistics ---
18 packets transmitted, 0 received, 100% packet loss, time 17002ms




[cid:image001.jpg at 01CD4DFF.C4B18560]Please consider the environment before printing this email.


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

DISCLAIMER: This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unintended recipients are prohibited from taking action on the basis of information in this e-mail.E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. If you are not comfortable with the risks associated with e-mail messages, you may decide not to use e-mail to communicate with IPC. IPC reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20120619/5752bc40/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 901 bytes
Desc: image001.jpg
URL: <http://lists.strongswan.org/pipermail/users/attachments/20120619/5752bc40/attachment.jpg>


More information about the Users mailing list