<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:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name="Microsoft Theme 2.00" content="Watermar 011"><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:SimSun;
        color:black;}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        margin-top:17.0pt;
        margin-right:0cm;
        margin-bottom:16.5pt;
        margin-left:0cm;
        text-align:justify;
        text-justify:inter-ideograph;
        line-height:240%;
        page-break-after:avoid;
        font-size:16.0pt;
        font-family:SimSun;
        color:black;}
h2
        {mso-style-priority:9;
        mso-style-link:"Heading 2 Char";
        margin-top:13.0pt;
        margin-right:0cm;
        margin-bottom:13.0pt;
        margin-left:0cm;
        text-align:justify;
        text-justify:inter-ideograph;
        line-height:173%;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:SimSun;
        color:black;
        font-weight:normal;}
h3
        {mso-style-priority:9;
        mso-style-link:"Heading 3 Char";
        margin-top:13.0pt;
        margin-right:0cm;
        margin-bottom:13.0pt;
        margin-left:0cm;
        text-align:justify;
        text-justify:inter-ideograph;
        line-height:173%;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:SimSun;
        color:black;
        font-weight:normal;}
h4
        {mso-style-priority:9;
        mso-style-link:"Heading 4 Char";
        margin-top:14.0pt;
        margin-right:0cm;
        margin-bottom:14.5pt;
        margin-left:0cm;
        text-align:justify;
        text-justify:inter-ideograph;
        line-height:156%;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:SimSun;
        color:black;
        font-weight:normal;}
h5
        {mso-style-priority:9;
        mso-style-link:"Heading 5 Char";
        margin-top:14.0pt;
        margin-right:0cm;
        margin-bottom:14.5pt;
        margin-left:0cm;
        text-align:justify;
        text-justify:inter-ideograph;
        line-height:156%;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:SimSun;
        color:black;
        font-weight:normal;}
h6
        {mso-style-priority:9;
        mso-style-link:"Heading 6 Char";
        margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.2pt;
        margin-left:0cm;
        text-align:justify;
        text-justify:inter-ideograph;
        line-height:133%;
        page-break-after:avoid;
        font-size:11.0pt;
        font-family:SimSun;
        color:black;
        font-weight:normal;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#3333CC;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#999999;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:SimSun;
        color:black;
        font-weight:bold;}
span.Heading2Char
        {mso-style-name:"Heading 2 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 2";
        font-family:SimSun;
        color:black;}
span.Heading3Char
        {mso-style-name:"Heading 3 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 3";
        font-family:SimSun;
        color:black;}
span.Heading4Char
        {mso-style-name:"Heading 4 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 4";
        font-family:SimSun;
        color:black;}
span.Heading5Char
        {mso-style-name:"Heading 5 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 5";
        font-family:SimSun;
        color:black;}
span.Heading6Char
        {mso-style-name:"Heading 6 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 6";
        font-family:SimSun;
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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 bgcolor=white background="cid:image001.gif@01CABF9E.CD9F0810" lang=ZH-CN link="#3333CC" vlink="#999999" style='text-justify-trim:punctuation'><img src="cid:image001.gif@01CABF9E.CD9F0810" v:src="cid:image001.gif@01CABF9E.CD9F0810" v:shapes="_x0000_Mail" width=0 height=0 class=shape style='display:none;width:0;height:0'><!--[if gte mso 9]><xml>
<v:background id="_x0000_s1025" o:bwmode="white" o:targetscreensize="1024,768">
<v:fill src="cid:image001.gif@01CABF9E.CD9F0810" o:title="watbkgnd" type="frame" />
</v:background></xml><![endif]--><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>Hi All,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>I want to use StrongSwan as a client to set up VPN tunnel with other device. And I configure the authentication mode as EAP_MD5. However, I met some problems. My configuration file is as follows:<o:p></o:p></span></p><p class=MsoNormal style='text-indent:21.0pt'><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>conn test<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:21.0pt'><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>         leftauth=eap<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:21.0pt'><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>         eap_identity=aaron<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>                   rightauth=psk<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>                   keyexchange=ikev2<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>                   left=x.x.x.x<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>                   leftsourceip=%config<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>                   right=y.y.y.y<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>                   rightsubnet=192.168.168.0/24<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>                   auto=add<o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>My ipsec.secrets is as follows:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>                  <i>x.x.x.x y.y.y.y : PSK “123456”<o:p></o:p></i></span></p><p class=MsoNormal><i><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>                  aaron : EAP “password”<o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>And also I enable the eap plugin in strongswan.conf<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>But I capture the packet and found that strongswan send a eap response payload  to peer only with 22 </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'>octets </span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>which</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'> </span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>does not include any information about the eap_identity. Refer to the RFC that says :<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'>A summary of the Challenge and Response packet format is shown below.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'>   The fields are transmitted from left to right.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'>   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'>   |     Code      |  Identifier   |            Length             |<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'>   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'>   |  Value-Size   |  Value ...<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'>   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'>   |  Name ...<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:navy'>   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>I can not see the field Name in the packet. Is there any problem? <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Verdana","sans-serif";color:windowtext'> thanks <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Verdana","sans-serif";color:windowtext'>  -</span><span lang=EN-US style='font-family:"Verdana","sans-serif";color:windowtext'>Aaron</span><span lang=EN-US style='font-size:12.0pt;font-family:"Verdana","sans-serif";color:windowtext'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>