<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:\5B8B\4F53;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:"\@\5B8B\4F53";
        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:"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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</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=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi all ! <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> My
openswan configure of LINUX VPN SERVER like below: it’s almost copy from
/etc/ipsec.d/example/l2tp-cert.conf<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>conn l2tpx509<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
authby=rsasig<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
rekey=no<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
ikelifetime=8h<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
keylife=1h<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
type=transport<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
left=10.255.255.8<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
leftid=%fromcert<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
leftrsasigkey=%cert<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </span><b><span
lang=EN-US style='font-size:12.0pt;color:red'>leftcert=westcert.pem<o:p></o:p></span></b></p>
<p class=MsoNormal><span lang=EN-US>
leftprotoport=17/1701<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
right=%any<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
rightca=%same<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
rightrsasigkey=%cert<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
rightprotoport=17/%any<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
rightsubnet=vhost:%priv,%no<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
pfs=yes<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
auto=add<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>In this configure , I have a question.
Which certificate file should be set on leftcert=, the <b>westcert.pem</b> (my
vpn gateway’s pem file) or <b>winxp.pem</b> (the pem file for winxp client)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>After this config, In my winxp client , I
have used ipsec.exe, and the config file like below:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>conn l2tpx509<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> left=%any<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> right=10.255.255.8<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> rightca="C=CN,
S=JiangSu, O=NewPower, OU=CoreTech, CN=RootCASrv,
E=net17shawnlau@gmail.com"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> network=auto<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> autp=start<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> pfs=yes<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>conn l2tpx509-net<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> left=%any<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> right=10.255.255.8<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> rightsubnet=192.168.88.128/25<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> rightca="C=CN,
S=JiangSu, O=NewPower, OU=CoreTech, CN=RootCASrv,
E=net17shawnlau@gmail.com"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> pfs=yes<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> network=auto<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> auto=start<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>When I boot ipsec.exe, from winxp client I
ping the hosts of vpn network. But result always: </span><b><span lang=EN-US
style='font-size:12.0pt'>Negotiating IP Security<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US style='font-size:12.0pt'>I have made a
new key and pem file for windows, and transform the to PKCS#12 file. But the
error still like above. <o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US style='font-size:12.0pt'>3kx and
regards!<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US style='font-size:12.0pt'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US style='font-size:12.0pt'>Shawn</span></b><span
lang=EN-US><o:p></o:p></span></p>
</div>
</body>
</html>