<?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 Twice NAT not working in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/twice-nat-not-working/m-p/2056390#M438962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Julio that did the trick!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tarik Admani &lt;BR /&gt;*Please rate helpful posts*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2012 17:31:43 GMT</pubDate>
    <dc:creator>Tarik Admani</dc:creator>
    <dc:date>2012-08-24T17:31:43Z</dc:date>
    <item>
      <title>Twice NAT not working</title>
      <link>https://community.cisco.com/t5/network-security/twice-nat-not-working/m-p/2056388#M438956</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our NOC is trying to configure a site to site tunnel to one of our customers. The tunnel is up and operational, however we can't get our NAT rules to match what we want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are running ASA version 8.4(3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The traffic is sourced from 172.16.1.50 (inside1) and destined to192.168.2.9 (outside), the nat configuration is posted below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOC-ASA5510-01# show run nat&lt;/P&gt;&lt;P&gt;nat (inside1,inside2) source static ng-noc-networks ng-noc-networks destination static ng-inside2-networks ng-inside2-networks&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline; "&gt;nat (inside1,outside) source static test test-EXT destination static otherside otherside&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline; "&gt;object network obj_any&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; nat (inside1,outside) dynamic interface dns&lt;/P&gt;&lt;P&gt;object network servers-noc&lt;/P&gt;&lt;P&gt; nat (inside1,outside) static 192.168.1.68&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the output from the show nat detailed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOC-ASA5510-01# show nat detail &lt;/P&gt;&lt;P&gt;Manual NAT Policies (Section 1)&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;I left off entry 1 but it doesnt have any translated hits either&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2 (inside1) to (outside) source static test test-EXT&amp;nbsp;&amp;nbsp; destination static otherside otherside&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; translate_hits = 0, untranslate_hits = 624&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source - Origin: 172.16.1.50/32, Translated: 192.168.1.67/32&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Destination - Origin:192.168.2.9/32, Translated:192.168.2.9/32&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Auto NAT Policies (Section 2)&lt;/P&gt;&lt;P&gt;1 (inside1) to (outside) source static servers-noc 192.168.1.68&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; translate_hits = 0, untranslate_hits = 187&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source - Origin: 172.16.1.101/32, Translated: 192.168.1.68/32&lt;/P&gt;&lt;P&gt;2 (inside1) to (outside) source dynamic obj_any interface&amp;nbsp;&amp;nbsp; dns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; translate_hits = 58417, untranslate_hits = 1511&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source - Origin: 0.0.0.0/0, Translated: 192.168.1.66/29&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the network objects:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object network test&lt;/P&gt;&lt;P&gt; host 172.16.1.50&lt;/P&gt;&lt;P&gt;object network test-EXT&lt;/P&gt;&lt;P&gt; host 192.168.1.67&lt;/P&gt;&lt;P&gt;object network otherside&lt;/P&gt;&lt;P&gt; host 192.168.2.9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the vpn configuration:&lt;/P&gt;&lt;P&gt;crypto map outside_map 1 match address tunnelcrypto&lt;/P&gt;&lt;P&gt;crypto map outside_map 1 set peer 192.168.3.4 &lt;/P&gt;&lt;P&gt;crypto map outside_map 1 set ikev1 transform-set ESP-AES-256-SHA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access-list tunnelcrypto extended permit ip host 192.168.1.67 host 192.168.2.9 &lt;/P&gt;&lt;P&gt;access-list tunnelcrypto extended permit ip host192.168.2.9 host 192.168.1.67 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we run packet capture using icmp code 8 type 0 (echo request) it matches an object nat statement and not the twice nat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOC-ASA5510-01# packet-tracer input inside1 icmp 172.16.1.50 8 0 192.168.2.9 detailed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phase: 6&lt;/P&gt;&lt;P&gt;Type: NAT&lt;/P&gt;&lt;P&gt;Subtype: &lt;/P&gt;&lt;P&gt;Result: ALLOW&lt;/P&gt;&lt;P&gt;Config:&lt;/P&gt;&lt;P&gt;object network obj_any&lt;/P&gt;&lt;P&gt; nat (inside1,outside) dynamic interface dns&lt;/P&gt;&lt;P&gt;Additional Information:&lt;/P&gt;&lt;P&gt;Dynamic translate 172.16.1.50/10 to 192.168.1.66/10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tarik Admani&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 23:45:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/twice-nat-not-working/m-p/2056388#M438956</guid>
      <dc:creator>Tarik Admani</dc:creator>
      <dc:date>2019-03-11T23:45:54Z</dc:date>
    </item>
    <item>
      <title>Twice NAT not working</title>
      <link>https://community.cisco.com/t5/network-security/twice-nat-not-working/m-p/2056389#M438959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Hello Tarik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clean the config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the crypto ACL you do not need to set the returning traffic &lt;/P&gt;&lt;P&gt;"access-list tunnelcrypto extended permit ip host192.168.2.9 host 192.168.1.67"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now regarding the NAT problem would you mind to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;object network obj_any&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;No nat (inside1,outside) dynamic interface dns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;Then create an object for the internal subnet&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;object network Internal_Subnet&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;subnet x.x.x.x x.x.x.x.x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;nat (inside,outside) source dynamic Internal_Subnet interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;Do a clear xlate and finally try the packet tracer and provide me the output please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;Regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;Julio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border-collapse: collapse; font-size: 12px; list-style: none; font-family: Arial, verdana, sans-serif;"&gt;Remember to rate all the helpful posts&lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.cisco.com/4.5.4/images/tiny_mce3/plugins/jiveemoticons/images/spacer.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 03:33:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/twice-nat-not-working/m-p/2056389#M438959</guid>
      <dc:creator>Julio Carvajal</dc:creator>
      <dc:date>2012-08-24T03:33:02Z</dc:date>
    </item>
    <item>
      <title>Twice NAT not working</title>
      <link>https://community.cisco.com/t5/network-security/twice-nat-not-working/m-p/2056390#M438962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Julio that did the trick!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tarik Admani &lt;BR /&gt;*Please rate helpful posts*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 17:31:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/twice-nat-not-working/m-p/2056390#M438962</guid>
      <dc:creator>Tarik Admani</dc:creator>
      <dc:date>2012-08-24T17:31:43Z</dc:date>
    </item>
  </channel>
</rss>

