<div dir="ltr">Hi áÒÔ£Í,<br><br>I think it is not possible with L2TP, as you need a link protocol within IPsec to authenticate and give a virutal interface for the client. Both Xauth and L2TP require that you enter a username and password. The only way around this is to write a computer program that starts the windows authentication process and enters the name and password for you.<br>
<br>Thats theoretical, but to show this in practice I have found something online for you:<br><br>rasdial &lt;vpn_name&gt; &lt;vpn_username&gt; &lt;vpn_password&gt;<br><br>To disconnect:<br><br>rasdial &lt;vpn_name&gt; /d<br>
<br>Thus, in usable terms, your line would look like this:<br><br>System.Diagnostics.Process.Start(&quot;rasdial.exe&quot;, &quot;My_VPN My_Username My_Password&quot;);<br><br><br>To disconnect from the VPN, simply use this line:<br>
<br>System.Diagnostics.Process.Start(&quot;rasdial.exe&quot;, &quot;My_VPN /d&quot;); <br><br><br>That sound promissing as the username is entered for you now.<br><br>Also take a look at this page:<br><a href="http://geekswithblogs.net/thibbard/articles/CSharpCodeToMaintainVPNConnectionProgramatically.aspx">http://geekswithblogs.net/thibbard/articles/CSharpCodeToMaintainVPNConnectionProgramatically.aspx</a><br>
<br>This shows a program in c# to connect a VPN.<br><br>Greetings,<br><br>Bart Smink<br><br><br><br><br>2013/3/24 áÒԣ͠ëÏÎ×ÁÌÀË &lt;<a href="mailto:artret@gmail.com">artret@gmail.com</a>&gt;<br>&gt;<br>&gt; Hello everyone! I need to use L2TP/IPsec server for roaming users with<br>
&gt; certificate or smartcard authentication (from Window XP/7<br>&gt; client-side). I mean that there shouldn&#39;t be any login/password<br>&gt; combination. Client should press &quot;Connect&quot; button, choose certificate<br>
&gt; (or enter PIN for smartcard) and that is all.<br>&gt; Is there any possibilities to do this with xl2tpd + OpenSwan?<br>&gt; Could anybody help?<br>&gt; _______________________________________________<br>&gt; <a href="mailto:Users@lists.openswan.org">Users@lists.openswan.org</a><br>
&gt; <a href="https://lists.openswan.org/mailman/listinfo/users">https://lists.openswan.org/mailman/listinfo/users</a><br>&gt; Micropayments: <a href="https://flattr.com/thing/38387/IPsec-for-Linux-made-easy">https://flattr.com/thing/38387/IPsec-for-Linux-made-easy</a><br>
&gt; Building and Integrating Virtual Private Networks with Openswan:<br>&gt; <a href="http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155">http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155</a><br>
<br><br><br><br>--<br>**** DISCLAIMER ****<br><br>&quot;This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. <br>
Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. <br>If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer&quot;.<br>
<br>Thank you for your cooperation.</div>