<?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 Policy Dynamic NAT on ASA - Matching Order in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/policy-dynamic-nat-on-asa-matching-order/m-p/1840583#M489531</link>
    <description>&lt;P&gt;I have in my ASA, config like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nat (inside) 1 access-list ACL1&lt;/P&gt;&lt;P&gt;nat (inside) 4 access-list ACL4&lt;/P&gt;&lt;P&gt;nat (inside) 3 access-list ACL3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The document &lt;A href="http://www.cisco.com/en/US/partner/docs/security/asa/asa82/configuration/guide/nat_overview.html#wp1079279" target="_blank"&gt;*here*&lt;/A&gt; says "Policy dynamic NAT (nat access-list) — In order, until the first match. Overlapping addresses are allowed."&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I always thought that meant, the order of the numbers in your NAT statement (as opposed to the order they show in your config).&amp;nbsp; Packet-tracer suggests that I'm wrong, however.&amp;nbsp; &lt;SPAN __jive_emoticon_name="shocked" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon" height="1" src="https://community.cisco.com/4.5.4/images/tiny_mce3/plugins/jiveemoticons/images/spacer.gif" width="1"&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; So it's really the order of the the policy NAT statements in the config?&amp;nbsp; Is there a way to gracefully re-order these elements without doing a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no nat (inside) 4 access-list ACL4&lt;/P&gt;&lt;P&gt;nat (inside) 4 access-list ACL4&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 22:09:37 GMT</pubDate>
    <dc:creator>ds6123</dc:creator>
    <dc:date>2019-03-11T22:09:37Z</dc:date>
    <item>
      <title>Policy Dynamic NAT on ASA - Matching Order</title>
      <link>https://community.cisco.com/t5/network-security/policy-dynamic-nat-on-asa-matching-order/m-p/1840583#M489531</link>
      <description>&lt;P&gt;I have in my ASA, config like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nat (inside) 1 access-list ACL1&lt;/P&gt;&lt;P&gt;nat (inside) 4 access-list ACL4&lt;/P&gt;&lt;P&gt;nat (inside) 3 access-list ACL3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The document &lt;A href="http://www.cisco.com/en/US/partner/docs/security/asa/asa82/configuration/guide/nat_overview.html#wp1079279" target="_blank"&gt;*here*&lt;/A&gt; says "Policy dynamic NAT (nat access-list) — In order, until the first match. Overlapping addresses are allowed."&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I always thought that meant, the order of the numbers in your NAT statement (as opposed to the order they show in your config).&amp;nbsp; Packet-tracer suggests that I'm wrong, however.&amp;nbsp; &lt;SPAN __jive_emoticon_name="shocked" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon" height="1" src="https://community.cisco.com/4.5.4/images/tiny_mce3/plugins/jiveemoticons/images/spacer.gif" width="1"&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; So it's really the order of the the policy NAT statements in the config?&amp;nbsp; Is there a way to gracefully re-order these elements without doing a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no nat (inside) 4 access-list ACL4&lt;/P&gt;&lt;P&gt;nat (inside) 4 access-list ACL4&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 22:09:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/policy-dynamic-nat-on-asa-matching-order/m-p/1840583#M489531</guid>
      <dc:creator>ds6123</dc:creator>
      <dc:date>2019-03-11T22:09:37Z</dc:date>
    </item>
    <item>
      <title>Policy Dynamic NAT on ASA - Matching Order</title>
      <link>https://community.cisco.com/t5/network-security/policy-dynamic-nat-on-asa-matching-order/m-p/1840584#M489534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do a show run nat you are going to see the order of the nat statements in your asa, as soon as one packet matches a nat rule it will use that nat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want you can provide us the show run access-list ,sh run nat ,sh run global and finally the packet tracer so I can analize it for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do rate helpful posts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Julio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 22:55:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/policy-dynamic-nat-on-asa-matching-order/m-p/1840584#M489534</guid>
      <dc:creator>Julio Carvajal</dc:creator>
      <dc:date>2012-01-03T22:55:43Z</dc:date>
    </item>
    <item>
      <title>Policy Dynamic NAT on ASA - Matching Order</title>
      <link>https://community.cisco.com/t5/network-security/policy-dynamic-nat-on-asa-matching-order/m-p/1840585#M489538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Julio,&lt;/P&gt;&lt;P&gt;The statements above are the order it appears in the config, which is the same as the "show run nat".&amp;nbsp; So...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;show run nat&lt;/P&gt;&lt;P&gt;&lt;SNIP unrelated="" nat=""&gt;&lt;/SNIP&gt;&lt;/P&gt;&lt;P&gt;nat (inside) 1 access-list ACL1&lt;/P&gt;&lt;P&gt;nat (inside) 4 access-list ACL4&lt;/P&gt;&lt;P&gt;nat (inside) 3 access-list ACL3&lt;/P&gt;&lt;P&gt;&lt;SNIP unrelated="" nat=""&gt;&lt;/SNIP&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice the order of 3 and 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what you're saying is the order the statements appear in the config is what determines what is matched first (which seems to be what's happening).&amp;nbsp; So ACL1, *ACL4* then ACL3 (the order in the config)?&amp;nbsp; As opposed to ACL1, ACL3 then ACL4 (numberical order of the identifier within the NAT statement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The config is kinda sanitized, so other info might not make sense.&amp;nbsp; But basically the packet-tracer is saying ACL4 is matching.&amp;nbsp; And technically, ACL4 *does* match, so it unfortunately never reaches ACL3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I know the fix to this.&amp;nbsp; Just delete nat statement 4 and re-add it.&amp;nbsp; But nat statement 4 is super critical to operations.&amp;nbsp; And I wanted confirmation that my thought process was correct, and that there isn't an easier way to re-order the nat statements in the running config besides deleting them (and causing a temporary outage) and re-adding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Know what I mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 23:09:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/policy-dynamic-nat-on-asa-matching-order/m-p/1840585#M489538</guid>
      <dc:creator>ds6123</dc:creator>
      <dc:date>2012-01-03T23:09:56Z</dc:date>
    </item>
    <item>
      <title>Policy Dynamic NAT on ASA - Matching Order</title>
      <link>https://community.cisco.com/t5/network-security/policy-dynamic-nat-on-asa-matching-order/m-p/1840586#M489540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is correct, the ASA has a order to follow talking about NAT &lt;/P&gt;&lt;P&gt;The ASA matches real addresses to NAT rules in the following order:&lt;/P&gt;&lt;P&gt;1. NAT exemption—In order, until the first match.&lt;/P&gt;&lt;P&gt;2. Static NAT and Static PAT (regular and policy)—In order, until the first match. Static identity NAT&lt;/P&gt;&lt;P&gt;is included in this category.&lt;/P&gt;&lt;P&gt;3. Policy dynamic NAT—In order, until the first match. Overlapping addresses are allowed.&lt;/P&gt;&lt;P&gt;4. Regular dynamic NAT—Best match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as you can see on the position number 3 it is a first match, witch will happend depending on if you configure first nat 1 or nat 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do rate helpful posts!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Julio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 23:41:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/policy-dynamic-nat-on-asa-matching-order/m-p/1840586#M489540</guid>
      <dc:creator>Julio Carvajal</dc:creator>
      <dc:date>2012-01-03T23:41:19Z</dc:date>
    </item>
  </channel>
</rss>

