<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[2.3.2-p1: No l2TP&#x2F;IPSEC login for Windows Client behind NAT]]></title><description><![CDATA[<p dir="auto">This happens on 2.3.2 releases: the logs below were created with:<br />
2.3.2-RELEASE-p1 (amd64) built on Tue Sep 27 12:13:07 CDT 2016 FreeBSD 10.3-RELEASE-p9</p>
<p dir="auto">There is no issue login IOS Clients (9.3.5 and 10.0.2) in this setup, regardless of NAT.</p>
<p dir="auto">Windows Clients (7 Pro and 10 Pro) have the following setting:<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent\AssumeUDPEncapsulationContextOnSendRule set to 2</p>
<p dir="auto">I can verify with logs that pfSense is creating and deleting the L2TP tunnel when the client is not behind a NAT: :(</p>
<p dir="auto">Windows 7 Client, No NAT</p>
<p dir="auto">Oct 7 07:56:03  charon  05[ENC] &lt;con1|6&gt;parsed QUICK_MODE request 1 [ HASH ]<br />
Oct 7 07:56:03  charon  05[IKE] &lt;con1|6&gt;CHILD_SA con1{6} established with SPIs c217cd81_i 381defdd_o and TS "pfSenseWANIP"/32|/0[udp/l2f] ===<br />
"Client1WANIP"/32|/0[udp/l2f]<br />
Oct 7 07:56:05  charon  05[KNL] interface l2tp0 activated<br />
Oct 7 07:56:05  charon  05[KNL] 10.10.10.215 appeared on l2tp0<br />
[…]<br />
Oct 7 07:59:40  charon  16[KNL] 10.10.10.215 disappeared from l2tp0 <br />
Oct 7 07:59:40  charon  16[KNL] interface l2tp0 deactivated<br />
Oct 7 07:59:44  charon  08[NET] &lt;con1|6&gt;received packet: from "Client1WANIP"[500] to "pfSenseWANIP"[500] (76 bytes)<br />
Oct 7 07:59:44  charon  08[ENC] &lt;con1|6&gt;parsed INFORMATIONAL_V1 request 3874314286 [ HASH D ]<br />
Oct 7 07:59:44  charon  08[IKE] &lt;con1|6&gt;received DELETE for ESP CHILD_SA with SPI 381defdd<br />
Oct 7 07:59:44  charon  08[IKE] &lt;con1|6&gt;closing CHILD_SA con1{6} with SPIs c217cd81_i (412377 bytes) 381defdd_o (3163224 bytes) and TS<br />
"pfSenseWANIP"/32|/0[udp/l2f] === "Client1WANIP"/32|/0[udp/l2f]</p>
<p dir="auto">IOS 9.3.5 Client, No NAT</p>
<p dir="auto">Oct 7 08:01:43  charon  15[ENC] &lt;con1|7&gt;parsed QUICK_MODE request 1648301045 [ HASH ]<br />
Oct 7 08:01:43  charon  15[IKE] &lt;con1|7&gt;CHILD_SA con1{7} established with SPIs c700ce2e_i 096408a7_o and TS "pfSenseWANIP"/32|/0[udp/l2f] ===<br />
"Client2WANIP"/32|/0[udp/59853]<br />
Oct 7 08:01:46  charon  15[KNL] interface l2tp0 activated<br />
Oct 7 08:02:01  charon  14[IKE] &lt;con1|7&gt;sending DPD request<br />
[…]<br />
Oct 7 08:07:52  charon  15[KNL] interface l2tp0 deactivated<br />
Oct 7 08:07:52  charon  15[NET] &lt;con1|7&gt;received packet: from "Client2WANIP"[500] to "pfSenseWANIP"[500] (76 bytes)<br />
Oct 7 08:07:52  charon  15[ENC] &lt;con1|7&gt;parsed INFORMATIONAL_V1 request 3293977714 [ HASH D ]<br />
Oct 7 08:07:52  charon  15[IKE] &lt;con1|7&gt;received DELETE for ESP CHILD_SA with SPI 096408a7<br />
Oct 7 08:07:52  charon  15[IKE] &lt;con1|7&gt;closing CHILD_SA con1{7} with SPIs c700ce2e_i (19657 bytes) 096408a7_o (50152 bytes) and TS<br />
"pfSenseWANIP"/32|/0[udp/l2f] === "Client2WANIP"/32|/0[udp/59853]</p>
<p dir="auto">If I place these clients behind a pfSense device (earlier version)<br />
2.2.6-RELEASE  (amd64) built on Mon Dec 21 14:50:08 CST 2015 FreeBSD 10.1-RELEASE-p25</p>
<p dir="auto">I can verift that IOS devices can still login:</p>
<p dir="auto">IOS 9.3.5 Client, NAT</p>
<p dir="auto">Oct 7 08:17:21  charon  08[ENC] &lt;con1|9&gt;parsed QUICK_MODE request 3242839932 [ HASH ]<br />
Oct 7 08:17:21  charon  08[IKE] &lt;con1|9&gt;CHILD_SA con1{9} established with SPIs c31f84c3_i 09a0a176_o and TS "pfSenseWANIP"/32|/0[udp/l2f] ===<br />
"NATdeviceWANIP"/32|/0[udp/59727]<br />
Oct 7 08:17:23  charon  08[KNL] interface l2tp0 appeared<br />
Oct 7 08:17:23  charon  08[KNL] interface l2tp0 activated<br />
Oct 7 08:17:39  charon  12[IKE] &lt;con1|9&gt;sending DPD request<br />
[…]<br />
Oct 7 08:18:46  charon  15[KNL] 10.10.10.215 disappeared from l2tp0<br />
Oct 7 08:18:46  charon  15[KNL] interface l2tp0 deactivated<br />
Oct 7 08:18:46  charon  15[NET] &lt;con1|9&gt;received packet: from "NATdeviceWANIP"[42557] to "pfSenseWANIP"[4500] (76 bytes)<br />
Oct 7 08:18:46  charon  15[ENC] &lt;con1|9&gt;parsed INFORMATIONAL_V1 request 4108575017 [ HASH D ]<br />
Oct 7 08:18:46  charon  15[IKE] &lt;con1|9&gt;received DELETE for ESP CHILD_SA with SPI 09a0a176<br />
Oct 7 08:18:46  charon  15[IKE] &lt;con1|9&gt;closing CHILD_SA con1{9} with SPIs c31f84c3_i (8605 bytes) 09a0a176_o (14248 bytes) and TS<br />
"pfSenseWANIP"/32|/0[udp/l2f] === "NATdeviceWANIP"/32|/0[udp/59727]<br />
Oct 7 08:18:46  charon  05[NET] &lt;con1|9&gt;received packet: from "NATdeviceWANIP"[42557] to "pfSenseWANIP"[4500] (92 bytes)<br />
Oct 7 08:18:46  charon  05[ENC] &lt;con1|9&gt;parsed INFORMATIONAL_V1 request 1495342214 [ HASH D ]<br />
Oct 7 08:18:46  charon  05[IKE] &lt;con1|9&gt;received DELETE for IKE_SA con1[9]<br />
Oct 7 08:18:46  charon  05[IKE] &lt;con1|9&gt;deleting IKE_SA con1[9] between "pfSenseWANIP"["pfSenseWANIP"]…"NATdeviceWANIP"[192.168.18.34]</p>
<p dir="auto">But pfSense does not create the L2TP tunnel. In fact, the call is terminated as soon as the IPSEC SA/SPI are created:</p>
<p dir="auto">Windows 10 Client, NAT</p>
<p dir="auto">Oct 7 07:13:32  charon  10[IKE] &lt;con1|1&gt;CHILD_SA con1{1} established with SPIs cd9071af_i c2cbfa88_o and TS "pfSenseWANIP"/32|/0[udp/l2f] ===<br />
"NATdeviceWANIP"/32|/0[udp/l2f]<br />
Oct 7 07:14:07  charon  05[NET] &lt;con1|1&gt;received packet: from "NATdeviceWANIP"[52326] to "pfSenseWANIP"[4500] (76 bytes)<br />
Oct 7 07:14:07  charon  05[ENC] &lt;con1|1&gt;parsed INFORMATIONAL_V1 request 2352928504 [ HASH D ]<br />
Oct 7 07:14:07  charon  05[IKE] &lt;con1|1&gt;received DELETE for ESP CHILD_SA with SPI c2cbfa88<br />
Oct 7 07:14:07  charon  05[IKE] &lt;con1|1&gt;closing CHILD_SA con1{1} with SPIs cd9071af_i (715 bytes) c2cbfa88_o (0 bytes) and TS "pfSenseWANIP"/32|/0<br />
[udp/l2f] === "NATdeviceWANIP"/32|/0[udp/l2f]</p>
<p dir="auto">Windows 7 Client, NAT</p>
<p dir="auto">Oct 7 08:23:32  charon  07[ENC] &lt;con1|10&gt;parsed QUICK_MODE request 1 [ HASH ]<br />
Oct 7 08:23:32  charon  07[IKE] &lt;con1|10&gt;CHILD_SA con1{10} established with SPIs cd5aabb2_i 0dfcc4c7_o and TS "pfSenseWANIP"/32|/0[udp/l2f] ===<br />
"NATdeviceWANIP"/32|/0[udp/l2f]<br />
Oct 7 08:24:07  charon  07[NET] &lt;con1|10&gt;received packet: from "NATdeviceWANIP"[3599] to "pfSenseWANIP"[4500] (76 bytes)<br />
Oct 7 08:24:07  charon  07[ENC] &lt;con1|10&gt;parsed INFORMATIONAL_V1 request 1541744095 [ HASH D ]<br />
Oct 7 08:24:07  charon  07[IKE] &lt;con1|10&gt;received DELETE for ESP CHILD_SA with SPI 0dfcc4c7<br />
Oct 7 08:24:07  charon  07[IKE] &lt;con1|10&gt;closing CHILD_SA con1{10} with SPIs cd5aabb2_i (870 bytes) 0dfcc4c7_o (0 bytes) and TS "pfSenseWANIP"/32|/0<br />
[udp/l2f] === "NATdeviceWANIP"/32|/0[udp/l2f]</p>
<p dir="auto">There are no log entries that I can find explaining this behavior.</p>
<p dir="auto">Can this be fixed?</p>
<p dir="auto">Regards,&lt;/con1|10&gt;&lt;/con1|10&gt;&lt;/con1|10&gt;&lt;/con1|10&gt;&lt;/con1|10&gt;&lt;/con1|10&gt;&lt;/con1|1&gt;&lt;/con1|1&gt;&lt;/con1|1&gt;&lt;/con1|1&gt;&lt;/con1|1&gt;&lt;/con1|9&gt;&lt;/con1|9&gt;&lt;/con1|9&gt;&lt;/con1|9&gt;&lt;/con1|9&gt;&lt;/con1|9&gt;&lt;/con1|9&gt;&lt;/con1|9&gt;&lt;/con1|9&gt;&lt;/con1|9&gt;&lt;/con1|9&gt;&lt;/con1|7&gt;&lt;/con1|7&gt;&lt;/con1|7&gt;&lt;/con1|7&gt;&lt;/con1|7&gt;&lt;/con1|7&gt;&lt;/con1|7&gt;&lt;/con1|6&gt;&lt;/con1|6&gt;&lt;/con1|6&gt;&lt;/con1|6&gt;&lt;/con1|6&gt;&lt;/con1|6&gt;</p>
]]></description><link>https://forum.netgate.com/topic/106321/2-3-2-p1-no-l2tp-ipsec-login-for-windows-client-behind-nat</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 13:34:25 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/106321.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Oct 2016 13:15:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 2.3.2-p1: No l2TP&#x2F;IPSEC login for Windows Client behind NAT on Wed, 19 Oct 2016 18:57:24 GMT]]></title><description><![CDATA[<p dir="auto">Both IPsec and L2TP work fine on their own for their intended purposes, it's the combination that fails in that situation. It wouldn't be accurate to place a warning anywhere in the pfSense GUI as it wouldn't be directly relevant, thus the warning on the wiki.</p>
]]></description><link>https://forum.netgate.com/post/656069</link><guid isPermaLink="true">https://forum.netgate.com/post/656069</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Wed, 19 Oct 2016 18:57:24 GMT</pubDate></item><item><title><![CDATA[Reply to 2.3.2-p1: No l2TP&#x2F;IPSEC login for Windows Client behind NAT on Fri, 14 Oct 2016 20:18:10 GMT]]></title><description><![CDATA[<p dir="auto">this is a total disaster! because of licensing BS, I switched all my customers from Sophos UTM to pfSense. using Sophos UTM, L2TP over IPsec worked just fine on both Windows and OS X clients without the need for any additional software on the client side. today I was trying to install the first Windows client: no-go. IMHO you should remove L2TP over IPsec completely if it's not working in the most common use case… or at least show a <em>STRONG</em> warning in the GUI of pfSense. now I feel like I did bet on the wrong horse.</p>
<p dir="auto">regards,<br />
michael</p>
]]></description><link>https://forum.netgate.com/post/655164</link><guid isPermaLink="true">https://forum.netgate.com/post/655164</guid><dc:creator><![CDATA[mikeboss]]></dc:creator><pubDate>Fri, 14 Oct 2016 20:18:10 GMT</pubDate></item><item><title><![CDATA[Reply to 2.3.2-p1: No l2TP&#x2F;IPSEC login for Windows Client behind NAT on Fri, 07 Oct 2016 18:31:36 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your answer.</p>
<p dir="auto">Actually, the warning is "Users have reported issues with Windows L2TP/IPsec clients behind NAT. If the clients will be behind NAT, an IKEv2 implementation may be a better fit.", which is a LOT weaker than your definitive "will not work behind NAT".</p>
<p dir="auto">Perhaps, a review of said warning is in order.</p>
<p dir="auto">Regards,</p>
]]></description><link>https://forum.netgate.com/post/653901</link><guid isPermaLink="true">https://forum.netgate.com/post/653901</guid><dc:creator><![CDATA[SergeCaron]]></dc:creator><pubDate>Fri, 07 Oct 2016 18:31:36 GMT</pubDate></item><item><title><![CDATA[Reply to 2.3.2-p1: No l2TP&#x2F;IPSEC login for Windows Client behind NAT on Fri, 07 Oct 2016 14:19:39 GMT]]></title><description><![CDATA[<p dir="auto">Windows clients will not work with L2TP/IPsec behind NAT – We even have a warning about that at the top of https://doc.pfsense.org/index.php/L2TP/IPsec</p>
<p dir="auto">There is an issue between the Windows clients and strongSwan with L2TP/IPsec and for whatever reason the Windows client is not negotiating it properly.</p>
<p dir="auto">You're better all-around if you move on to IKEv2 and don't bother with L2TP/IPsec.</p>
]]></description><link>https://forum.netgate.com/post/653794</link><guid isPermaLink="true">https://forum.netgate.com/post/653794</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Fri, 07 Oct 2016 14:19:39 GMT</pubDate></item></channel></rss>