<?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[IPsec configuration to support both aggressive and main IKE negotiation modes?]]></title><description><![CDATA[<p dir="auto">I'm not sure this particular combination has been posted before, so sorry if this is a dupe. Here's my situation:</p>
<p dir="auto">I can get a Road Warrior configuration working with Android using the following guide:<br />
https://doc.pfsense.org/index.php/IPsec_Road_Warrior/Mobile_Client_How-To</p>
<p dir="auto">However I ran into an issue where Android 5.x doesn't work properly using IKE aggressive negotiation mode, so changed it to main mode. (as described in this post https://forum.pfsense.org/index.php?topic=87655.30)</p>
<p dir="auto">Now I have another problem – I can't get my Mac OS X Mavericks system to connect using Main mode, and it wants to work using aggressive mode.</p>
<p dir="auto">Is there a way I can support a road warrior configuration for both IKE negotiation methods?</p>
]]></description><link>https://forum.netgate.com/topic/82753/ipsec-configuration-to-support-both-aggressive-and-main-ike-negotiation-modes</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 17:16:43 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/82753.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Apr 2015 21:17:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IPsec configuration to support both aggressive and main IKE negotiation modes? on Tue, 21 Apr 2015 01:53:42 GMT]]></title><description><![CDATA[<p dir="auto">Thanks jimp.</p>
<p dir="auto">Unfortunately my results appear to be slightly different. I get this "none allows XAuthInitPSK authentication using Main Mode" error.</p>
<pre><code>
Apr 20 21:23:21	charon: 09[IKE] &lt;24&gt; 166.xx.xx.xx is initiating a Main Mode IKE_SA
Apr 20 21:23:21	charon: 09[ENC] &lt;24&gt; generating ID_PROT response 0 [ SA V V V V V ]
Apr 20 21:23:21	charon: 09[NET] &lt;24&gt; sending packet: from 72.xx.xx.xx[500] to 166.xx.xx.xx[500] (180 bytes)
Apr 20 21:23:21	charon: 09[NET] &lt;24&gt; received packet: from 166.xx.xx.xx[500] to 72.xx.xx.xx[500] (228 bytes)
Apr 20 21:23:21	charon: 09[ENC] &lt;24&gt; parsed ID_PROT request 0 [ KE No NAT-D NAT-D ]
Apr 20 21:23:21	charon: 09[IKE] &lt;24&gt; remote host is behind NAT
Apr 20 21:23:21	charon: 09[IKE] &lt;24&gt; remote host is behind NAT
Apr 20 21:23:21	charon: 09[ENC] &lt;24&gt; generating ID_PROT response 0 [ KE No NAT-D NAT-D ]
Apr 20 21:23:21	charon: 09[NET] &lt;24&gt; sending packet: from 72.xx.xx.xx[500] to 166.xx.xx.xx[500] (244 bytes)
Apr 20 21:23:22	charon: 09[NET] &lt;24&gt; received packet: from 166.xx.xx.xx[4500] to 72.xx.xx.xx[4500] (92 bytes)
Apr 20 21:23:22	charon: 09[ENC] &lt;24&gt; parsed ID_PROT request 0 [ ID HASH ]
Apr 20 21:23:22	charon: 09[CFG] &lt;24&gt; looking for XAuthInitPSK peer configs matching 72.xx.xx.xx...166.xx.xx.xx[10.104.175.66]
Apr 20 21:23:22	charon: 09[IKE] &lt;24&gt; found 2 matching configs, but none allows XAuthInitPSK authentication using Main Mode
Apr 20 21:23:22	charon: 09[IKE] &lt;24&gt; found 2 matching configs, but none allows XAuthInitPSK authentication using Main Mode
Apr 20 21:23:22	charon: 09[ENC] &lt;24&gt; generating INFORMATIONAL_V1 request 3999605427 [ HASH N(AUTH_FAILED) ]

</code></pre>
<p dir="auto">Android client is the main mode initiator, pfsense is the aggressive mode responder.</p>
<p dir="auto">The "auto" mode that I can find on my settings is the IKE version, not negotiation mode. I'm sticking with V1 due to the clients I'm using for road warrior use.</p>
<p dir="auto">I'm using IP address for the identifier. I think this is OK, right? Under the following guide it mentions that the identifier should match, but then I think I wouldn't get "found 2 matching configs" right?<br />
https://doc.pfsense.org/index.php/Upgrade_Guide#IPsec_Changes</p>
<p dir="auto">(and yes, I have a site to site configuration and a road warrior configuration, hence 2 configs)</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.netgate.com/post/538276</link><guid isPermaLink="true">https://forum.netgate.com/post/538276</guid><dc:creator><![CDATA[ShutterBC]]></dc:creator><pubDate>Tue, 21 Apr 2015 01:53:42 GMT</pubDate></item><item><title><![CDATA[Reply to IPsec configuration to support both aggressive and main IKE negotiation modes? on Fri, 17 Apr 2015 19:41:38 GMT]]></title><description><![CDATA[<p dir="auto">If Phase 1 is set to Aggressive, strongSwan will still allow a main mode client to negotiate. Or at least it has in my testing. See https://doc.pfsense.org/index.php/IPsec_Troubleshooting#Common_Errors_.28strongSwan.2C_pfSense_.3E.3D_2.2.x.29</p>
<p dir="auto">When the two sites were mismatched on one main and one on aggressive, if the main side initiated, the tunnel would still come up.</p>
]]></description><link>https://forum.netgate.com/post/537465</link><guid isPermaLink="true">https://forum.netgate.com/post/537465</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Fri, 17 Apr 2015 19:41:38 GMT</pubDate></item><item><title><![CDATA[Reply to IPsec configuration to support both aggressive and main IKE negotiation modes? on Tue, 14 Apr 2015 10:26:40 GMT]]></title><description><![CDATA[<p dir="auto">Yes there is on 2.2.1 you can select auto on your IKE phase1 configuration.<br />
Hopefully that will allow you to connect.</p>
]]></description><link>https://forum.netgate.com/post/536184</link><guid isPermaLink="true">https://forum.netgate.com/post/536184</guid><dc:creator><![CDATA[eri--]]></dc:creator><pubDate>Tue, 14 Apr 2015 10:26:40 GMT</pubDate></item><item><title><![CDATA[Reply to IPsec configuration to support both aggressive and main IKE negotiation modes? on Mon, 13 Apr 2015 21:41:25 GMT]]></title><description><![CDATA[<p dir="auto">No, not ATM.</p>
]]></description><link>https://forum.netgate.com/post/536056</link><guid isPermaLink="true">https://forum.netgate.com/post/536056</guid><dc:creator><![CDATA[doktornotor]]></dc:creator><pubDate>Mon, 13 Apr 2015 21:41:25 GMT</pubDate></item></channel></rss>