<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Two ISP, one IKE-gateway. Loopback as IKE-source, source-nat - session and IKE never actually reset. in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/two-isp-one-ike-gateway-loopback-as-ike-source-source-nat/m-p/541117#M110941</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/286371"&gt;@Olof_Lundgren&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;So the procedure for this is actually that you'll have two tunnels configured. If you don't want to do that, you'll need to script something to manually reset the tunnel in the event of a failure to get it to behave like you want. While I'm a big fan of scripting and the XML-API, I'd really recommend you go with the two tunnel method since it's a faster failover.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000POO0CAO" target="_blank"&gt;https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000POO0CAO&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 20:55:19 GMT</pubDate>
    <dc:creator>BPry</dc:creator>
    <dc:date>2023-05-04T20:55:19Z</dc:date>
    <item>
      <title>Two ISP, one IKE-gateway. Loopback as IKE-source, source-nat - session and IKE never actually reset.</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/two-isp-one-ike-gateway-loopback-as-ike-source-source-nat/m-p/541045#M110932</link>
      <description>&lt;P&gt;What I am trying to achive:&lt;/P&gt;
&lt;P&gt;I have two ISPs with two different static IPs.&lt;/P&gt;
&lt;P&gt;I want to create one tunnel to one remote site.&lt;/P&gt;
&lt;P&gt;Tested with panos version: 9.1.14-h4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Loopback IP: 192.168.99.1/32 inside zone&lt;/P&gt;
&lt;P&gt;eth1/1 WAN1: 11.11.11.11 outside zone&lt;/P&gt;
&lt;P&gt;eth1/2 WAN2: 22.22.22.22 outside zone&lt;/P&gt;
&lt;P&gt;Tunnel IP: 172.16.99.2/30 inside zone&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both ISPs have RP-filter strict (setup in a lab)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have one policy rule that allows everything from inside to outside zone.&lt;/P&gt;
&lt;P&gt;I have setup two dynamic source-nat rules, based on both outside interfaces.&lt;/P&gt;
&lt;P&gt;I can do:&lt;/P&gt;
&lt;P&gt;ping source 192.168.99.1 host 88.88.88.88&lt;/P&gt;
&lt;P&gt;Turn off WAN1&lt;/P&gt;
&lt;P&gt;and ping will continue to work, and I can see in session table that it has updated its source-nat session.&lt;/P&gt;
&lt;P&gt;This means: NAT works, on both interfaces. Policy rules work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, try the same thing with IKE+IPSEC.&lt;/P&gt;
&lt;P&gt;IKE-gateway, sourced from loopback, using fqdn as local-id. Enable NAT-T on both ends.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tunnel comes up, great success! I can see in session table that it is source-nat'ed.&lt;/P&gt;
&lt;P&gt;Turn off WAN1.&lt;/P&gt;
&lt;P&gt;I can see that packets leaving WAN2 now has the public IP of WAN1. Now this is ofcourse blocked by ISP routers because they have RP-filter strict.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IKE process doesnt seem to ever be reset, and to solve this I have to do two things: &lt;STRONG&gt;clear session table, &lt;/STRONG&gt;and&lt;STRONG&gt; clear ike-sa.&lt;/STRONG&gt; (in that order)&lt;/P&gt;
&lt;P&gt;Now finally IKE can reach remote gateway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My issue is, even though I played around with Liveness Check timers, and monitor-profile failover/recover, the IKE-process doesnt seem to be restarted (&lt;EM&gt;it uses same source UDP port when trying to create IKE Initiatior request&lt;/EM&gt;). This leads to NAT not being able to update its sessions, and not using a new outgoing IP on WAN2.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I dont know what ipsec implementation is under the hood, but if a liveness check reset where to happen - AND IKE process would use a new outgoing UDP source port per ike-gateway (when NAT-T is enabled), this would probably work as expected.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 14:41:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/two-isp-one-ike-gateway-loopback-as-ike-source-source-nat/m-p/541045#M110932</guid>
      <dc:creator>Olof_Lundgren</dc:creator>
      <dc:date>2023-05-04T14:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Two ISP, one IKE-gateway. Loopback as IKE-source, source-nat - session and IKE never actually reset.</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/two-isp-one-ike-gateway-loopback-as-ike-source-source-nat/m-p/541117#M110941</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/286371"&gt;@Olof_Lundgren&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;So the procedure for this is actually that you'll have two tunnels configured. If you don't want to do that, you'll need to script something to manually reset the tunnel in the event of a failure to get it to behave like you want. While I'm a big fan of scripting and the XML-API, I'd really recommend you go with the two tunnel method since it's a faster failover.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000POO0CAO" target="_blank"&gt;https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000POO0CAO&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 20:55:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/two-isp-one-ike-gateway-loopback-as-ike-source-source-nat/m-p/541117#M110941</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2023-05-04T20:55:19Z</dc:date>
    </item>
  </channel>
</rss>

