<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=us-ascii"><meta name=Generator content="Microsoft Word 12 (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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
@font-face
        {font-family:"Century Schoolbook";
        panose-1:2 4 6 4 5 5 5 2 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Century Gothic","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@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=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>I have Strongswan 5.3.2 client access Cisco ASA gateway that is failing to establish connection with error  HASH N(AUTH_FAILED).  The conf is as below,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'># ipsec.conf - strongSwan IPsec configuration file<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>version 2<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'># basic configuration<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>config setup<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        # strictcrlpolicy=yes<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        # uniqueids = no<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        strictcrlpolicy=no<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        #charondebug="ike 4, knl 4, cfg 4, enc 4, esp 4, chd 4"    #useful debugs<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'># Add connections here.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>conn %default<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        ikelifetime=1440m<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        keylife=60m<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        rekeymargin=3m<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        dpdaction=restart<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        closeaction=restart<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        keyingtries=1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        keyexchange=ikev1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        authby=xauthpsk<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>conn " vpn"<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        keyexchange=ikev1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        ikelifetime=1440m<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        keylife=60m<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        rekey=no<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>       aggressive=yes<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        ike=3des-md5-modp1024!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        esp=3des-md5!                   <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        xauth=client              <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        left=X.X.X.X        <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        leftid=hostname               <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        leftsourceip=%config      <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        leftfirewall=yes<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        leftauth=psk<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        rightauth=psk<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        leftauth2=xauth           <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        right=Y.Y.Y.Y        <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        rightsubnet=172.1.1.0/24<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        xauth_identity=abc    <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        authby=xauthpsk<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>        auto=start<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>The log output when starting is as below,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>initiating Aggressive Mode IKE_SA vpn[5] to Y.Y.Y.Y<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>generating AGGRESSIVE request 0 [ SA KE No ID V V V V ]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>sending packet: from X.X.X.X[500] to Y.Y.Y.Y[500] (335 bytes)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>received packet: from Y.Y.Y.Y [500] to X.X.X.X [500] (416 bytes)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>parsed AGGRESSIVE response 0 [ SA KE No ID HASH V V V V NAT-D NAT-D V V ]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>received Cisco Unity vendor ID<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>received XAuth vendor ID<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>received DPD vendor ID<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>received NAT-T (RFC 3947) vendor ID<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>received FRAGMENTATION vendor ID<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>received unknown vendor ID: 1f:07:f7:0e:aa:65:14:d3:b0:fa:96:54:2a:50:01:00<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>calculated HASH does not match HASH payload<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>generating INFORMATIONAL_V1 request 2360507816 [ HASH N(AUTH_FAILED) ]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>sending packet: from X.X.X.X [500] to Y.Y.Y.Y[500] (84 bytes)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>establishing connection 'vpn' failed<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'>Kindly help is identifying the reason behind this failure.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal style='background:white'><span style='font-size:12.0pt;font-family:"Century Gothic","sans-serif";color:black'>Regards,<o:p></o:p></span></p><p class=MsoNormal style='background:white'><b><span style='font-size:12.0pt;font-family:"Century Schoolbook","serif";color:black'>Daniel Kibe<o:p></o:p></span></b></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>