<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">With IKEv1, when strongSwan(as responder) sends INVALID-ID-INFORMATION for IDii/IDir mismatch, it does not send SPI value of IKE SA. However, it sends 0 SPI in the quickmode negotiation along with HASH payload
and N(INVALID-ID-INFORMATION). <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">As per <a href="https://tools.ietf.org/html/rfc2408#section-2.4">
https://tools.ietf.org/html/rfc2408#section-2.4</a>, this response message should under line no(4). I think, line(5) is for KE/ID payloads of main mode.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Can someone clarify, whether strongSwan should send valid SPI with the N(INVALID-ID-INFORMATION) or not ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""># Operation I-Cookie R-Cookie Message ID SPI<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">(1) Start ISAKMP SA negotiation X 0 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">(2) Respond ISAKMP SA negotiation X X 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">(3) Init other SA negotiation X X X X<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">(4) Respond other SA negotiation X X X X<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">(5) Other (KE, ID, etc.) X X X/0 NA<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">(6) Security Protocol (ESP, AH) NA NA NA X<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Here is the snip of the packet trace (strongSwan peer is 1.1.5.100) –
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">IKEv1 packet S(192.168.128.1:500 -> 1.1.5.100:500): len= 216, mID=00000000, HDR, SA, Vid, Vid, Vid, Vid, Vid, Vid<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">IKEv1 packet R(192.168.128.1:500 <- 1.1.5.100:500): len= 148, mID=00000000, HDR, SA, Vid, Vid, Vid<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">IKEv1 packet S(192.168.128.1:500 -> 1.1.5.100:500): len= 356, mID=00000000, HDR, KE, Nonce, PRV, PRV<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">IKEv1 packet R(192.168.128.1:500 <- 1.1.5.100:500): len= 372, mID=00000000, HDR, KE, Nonce, PRV, PRV<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">IKEv1 packet S(192.168.128.1:500 -> 1.1.5.100:500): len= 92, mID=00000000, HDR, ID, HASH, N(INITIAL_CONTACT)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">IKEv1 packet R(192.168.128.1:500 <- 1.1.5.100:500): len= 76, mID=00000000, HDR, ID, HASH<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">IKEv1 packet S(192.168.128.1:500 -> 1.1.5.100:500): len= 460, mID=8956a6b8, HDR, HASH, SA, Nonce, KE, ID, ID<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">IKEv1 packet R(192.168.128.1:500 <- 1.1.5.100:500): len= 76, mID=bd816a46, HDR, HASH, N(INVALID_ID_INFORMATION)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks & Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Hussaina N.<o:p></o:p></span></p>
</div>
</body>
</html>