Hi all,<br>
<br>
I am testing the UDP-Encapsulated-ESP Tunnel mode IPSEC between IMS clieny and the PCSCF. (3GPP TS 33.203)
<br>
<br>
<span>
I am simulating the IMS UE using a SIP client that runs on linux and uses NETKEY support to install and delete SAs.<br>
The IMS Client is able to send a UDP encapsulated packet to PCSCF.<br>
But the UDP encapsulated traffic from PCSCF is dropped by the kernel.<br>
<br>
The following is the details of the setup and the setkey config on the linux machine.<br>
The SAs are installed using manual keying.<br>
<br>
Linux Version: Linux ubuntu 2.6.24<br>
<br>
# setkey -D<br>
<a href="http://10.6.2.49/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.6.2.49</a>[4500] <a href="http://192.168.10.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.10.10</a>[4500]<br>
esp-udp mode=tunnel spi=33589962(0x02008aca) reqid=3(0x00000003)<br>
E: 3des-cbc 343acfea 1a84fffd a2e62344 fe2032b1 343acfea 1a84fffd<br>
A: hmac-sha1 be65b76d 0abba80b 7fea2992 ca891792 00000000<br>
seq=0x00000000 replay=0 flags=0x00000000 state=mature<br>
created: Oct 2 15:57:46 2008 current: Oct 6 13:30:12 2008<br>
diff: 336746(s) hard: 0(s) soft: 0(s)<br>
last:
hard: 0(s) soft: 0(s)<br>
current:
0(bytes) hard: 0(bytes) soft:
0(bytes)<br>
allocated: 0 hard: 0 soft: 0<br>
sadb_seq=1 pid=7274 refcnt=0<br>
<a href="http://10.6.2.49/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.6.2.49</a>[4500] <a href="http://192.168.10.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.10.10</a>[4500]<br>
esp-udp mode=tunnel spi=16812490(0x010089ca) reqid=2(0x00000002)<br>
E: 3des-cbc 343acfea 1a84fffd a2e62344 fe2032b1 343acfea 1a84fffd<br>
A: hmac-sha1 be65b76d 0abba80b 7fea2992 ca891792 00000000<br>
seq=0x00000000 replay=0 flags=0x00000000 state=mature<br>
created: Oct 2 15:57:46 2008 current: Oct 6 13:30:12 2008<br>
diff: 336746(s) hard: 0(s) soft: 0(s)<br>
last: Oct 2 15:57:46
2008 hard:
0(s) soft: 0(s)<br>
current: 4328(bytes) hard: 0(bytes) soft: 0(bytes)<br>
allocated: 4 hard: 0 soft: 0<br>
sadb_seq=2 pid=7274 refcnt=0<br>
<a href="http://192.168.10.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.10.10</a>[4500] <a href="http://10.6.2.49/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.6.2.49</a>[4500]<br>
esp-udp mode=tunnel spi=23456789(0x0165ec15) reqid=0(0x00000000)<br>
E: 3des-cbc 343acfea 1a84fffd a2e62344 fe2032b1 343acfea 1a84fffd<br>
A: hmac-sha1 be65b76d 0abba80b 7fea2992 ca891792 00000000<br>
seq=0x00000000 replay=0 flags=0x00000000 state=mature<br>
created: Oct 2 15:57:46 2008 current: Oct 6 13:30:12 2008<br>
diff: 336746(s) hard: 0(s) soft: 0(s)<br>
last:
hard: 0(s) soft: 0(s)<br>
current:
0(bytes) hard: 0(bytes) soft:
0(bytes)<br>
allocated: 0 hard: 0 soft: 0<br>
sadb_seq=3 pid=7274 refcnt=0<br>
<a href="http://192.168.10.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.10.10</a>[4500] <a href="http://10.6.2.49/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.6.2.49</a>[4500]<br>
esp-udp mode=tunnel spi=12345678(0x00bc614e) reqid=0(0x00000000)<br>
E: 3des-cbc 343acfea 1a84fffd a2e62344 fe2032b1 343acfea 1a84fffd<br>
A: hmac-sha1 be65b76d 0abba80b 7fea2992 ca891792 00000000<br>
seq=0x00000000 replay=0 flags=0x00000000 state=mature<br>
created: Oct 2 15:57:46 2008 current: Oct 6 13:30:12 2008<br>
diff: 336746(s) hard: 0(s) soft: 0(s)<br>
last:
hard: 0(s) soft: 0(s)<br>
current:
0(bytes) hard: 0(bytes) soft:
0(bytes)<br>
allocated: 0 hard: 0 soft: 0<br>
sadb_seq=0 pid=7274 refcnt=0<br>
<br>
# setkey -DP<br>
<a href="http://192.168.10.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.10.10</a>[6070] <a href="http://10.6.2.49/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.6.2.49</a>[8000] any<br>
in ipsec<br>
esp/tunnel/192.168.10.10-10.6.2.49/require<br>
created: Oct 2 15:57:46 2008 lastused:<br>
lifetime: 0(s) validtime: 0(s)<br>
spid=17664 seq=1 pid=7275<br>
refcnt=1<br>
<a href="http://192.168.10.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.10.10</a>[5070] <a href="http://10.6.2.49/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.6.2.49</a>[7000] any<br>
in ipsec<br>
esp/tunnel/192.168.10.10-10.6.2.49/require<br>
created: Oct 2 15:57:46 2008 lastused:<br>
lifetime: 0(s) validtime: 0(s)<br>
spid=17672 seq=2 pid=7275<br>
refcnt=1<br>
<a href="http://10.6.2.49/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.6.2.49</a>[7000] <a href="http://192.168.10.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.10.10</a>[5070] any<br>
out ipsec<br>
esp/tunnel/10.6.2.49-192.168.10.10/unique:2<br>
created: Oct 2 15:57:46 2008 lastused: Oct 2 15:57:50 2008<br>
lifetime: 0(s) validtime: 0(s)<br>
spid=17649 seq=3 pid=7275<br>
refcnt=1<br>
<a href="http://10.6.2.49/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.6.2.49</a>[8000] <a href="http://192.168.10.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.10.10</a>[6070] any<br>
out ipsec<br>
esp/tunnel/10.6.2.49-192.168.10.10/unique:3<br>
created: Oct 2 15:57:46 2008 lastused:<br>
lifetime: 0(s) validtime: 0(s)<br>
spid=17657 seq=0 pid=7275<br>
refcnt=1<br>
<br>
<a href="http://10.6.2.49/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.6.2.49</a> is the UE public IP address<br>
<a href="http://192.168.10.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.10.10</a> is the PCSCF IP address<br>
<br>
The UDP encapsulated packet from PCSCF to IMS Client is dropped by the kernel<br>
<br>
15:34:54.605608 IP 10.6.2.49.4500 > 192.168.10.10.4500: UDP-encap: ESP(spi=0x010089ca,seq=0x1), length 1116<br>
15:34:54.803321 IP 192.168.10.10.4500 > 10.6.2.49.4500: UDP-encap: ESP(spi=0x00bc614e,seq=0x1), length 660<br>
15:34:54.803340 IP <a href="http://10.6.2.49/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.6.2.49</a> > <a href="http://192.168.10.10/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.10.10</a>: ICMP <a href="http://10.6.2.49/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.6.2.49</a> udp
port 4500 unreachable, length 556 <<< Kernel sends ICMP error.<br>
<br>
Can any one tell me what could be the issue.<br>
Any help on this is greatly appreciated.<br>
<br>
Thanks,<br>
Sujithra</span>