<?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[SOLVED: IPSec VPN + IOS &quot;On Demand&quot;]]></title><description><![CDATA[<p dir="auto">Hello.  I am hoping someone has heard of this issue and/or knows how to fix it…</p>
<p dir="auto">I have a VPN setup successfully with IPsec and Certificate.  Everything works fine until I tell the IOS device to use the VPN "On Demand" in the profile setup.  This forces the VPN to connect when you access a specific site/domain.</p>
<p dir="auto">When I do this, it breaks the VPN.  The iPhone says "An unexpected error occurred." and can't connect.  Here are the logs...  Is this a known IOS issue maybe?</p>
<pre><code>
Dec 23 13:45:58	charon: 13[ENC] &lt;24&gt; parsed ID_PROT request 0 [ SA V V V V V V V V V V V V V V ]
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received NAT-T (RFC 3947) vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received draft-ietf-ipsec-nat-t-ike vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received draft-ietf-ipsec-nat-t-ike-08 vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received draft-ietf-ipsec-nat-t-ike-07 vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received draft-ietf-ipsec-nat-t-ike-06 vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received draft-ietf-ipsec-nat-t-ike-05 vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received draft-ietf-ipsec-nat-t-ike-04 vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received draft-ietf-ipsec-nat-t-ike-03 vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received draft-ietf-ipsec-nat-t-ike-02 vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received draft-ietf-ipsec-nat-t-ike-02\n vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received XAuth vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received Cisco Unity vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received FRAGMENTATION vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; received DPD vendor ID
Dec 23 13:45:58	charon: 13[IKE] &lt;24&gt; 0.0.0.0 is initiating a Main Mode IKE_SA
Dec 23 13:45:58	charon: 13[ENC] &lt;24&gt; generating ID_PROT response 0 [ SA V V V V V ]
Dec 23 13:45:58	charon: 13[NET] &lt;24&gt; sending packet: from 1.1.1.1[500] to 0.0.0.0[4708] (180 bytes)
Dec 23 13:45:58	charon: 14[NET] &lt;24&gt; received packet: from 0.0.0.0[4708] to 1.1.1.1[500] (228 bytes)
Dec 23 13:45:58	charon: 14[ENC] &lt;24&gt; parsed ID_PROT request 0 [ KE No NAT-D NAT-D ]
Dec 23 13:45:58	charon: 14[IKE] &lt;24&gt; remote host is behind NAT
Dec 23 13:45:58	charon: 14[IKE] &lt;24&gt; sending cert request for "C=XX, ST=XXXXXX, L=XXXXXX, O=XXXXXX, E=XXXX@XXXXXX.XXX, CN=XXXXXX"
Dec 23 13:45:58	charon: 14[ENC] &lt;24&gt; generating ID_PROT response 0 [ KE No CERTREQ NAT-D NAT-D ]
Dec 23 13:45:58	charon: 14[NET] &lt;24&gt; sending packet: from 1.1.1.1[500] to 0.0.0.0[4708] (389 bytes)

</code></pre>
]]></description><link>https://forum.netgate.com/topic/93360/solved-ipsec-vpn-ios-on-demand</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 08:32:49 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/93360.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Dec 2015 13:47:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SOLVED: IPSec VPN + IOS &quot;On Demand&quot; on Wed, 23 Dec 2015 14:27:56 GMT]]></title><description><![CDATA[<p dir="auto">Ok.  I hate replying to my own topic, but incase anyone else is having this problem, I thought I would update status…</p>
<p dir="auto">I found out it is indeed an IOS issue....  I was running IOS 9.0.2... <br />
Updated to latest IOS 9.2 and it solved the problem.</p>
]]></description><link>https://forum.netgate.com/post/592475</link><guid isPermaLink="true">https://forum.netgate.com/post/592475</guid><dc:creator><![CDATA[meluvalli]]></dc:creator><pubDate>Wed, 23 Dec 2015 14:27:56 GMT</pubDate></item></channel></rss>