<?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 Hi, The Manual NAT / Twice in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/strange-nat-problem/m-p/2566358#M201938</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Manual NAT / Twice NAT configuration you have shown above seems to have the &lt;STRONG&gt;"service" &lt;/STRONG&gt;configuration wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format of the command is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nat (sourceint,destint) source static &amp;lt;source real&amp;gt; &amp;lt;source mapped&amp;gt; service &amp;lt;source service real&amp;gt; &amp;lt;source service mapped&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when you look at the above format you will notice that if you are doing Static PAT (Port Forward) you would need to configure the &lt;STRONG&gt;"object service"&lt;/STRONG&gt; in the following way&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object service RDP&lt;BR /&gt;&amp;nbsp;service tcp source eq &amp;lt;port&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now that you have &lt;STRONG&gt;"destination"&lt;/STRONG&gt; there it will actually match the translation when the connection is coming from&lt;STRONG&gt; "inside"&lt;/STRONG&gt; towards &lt;STRONG&gt;"outside"&lt;/STRONG&gt; with the mapped destination port. So no actual Static PAT is performed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you wanted to use Auto NAT / Network Object NAT the configuration is much simpler. I personally pretty much always use this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object network &amp;lt;object name&amp;gt;&lt;BR /&gt;&amp;nbsp; host &amp;lt;real ip&amp;gt;&lt;BR /&gt;&amp;nbsp; nat (sourceint,destint) static &amp;lt;interface or actual ip&amp;gt; service tcp &amp;lt;real port&amp;gt; &amp;lt;mapped port&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If with either of these configurations the ASA gives the error message then make sure that the mapped port is not used in another NAT configuration. If there is no clear problem then it might be some bug. I have had this happen a couple of times and I have had to reboot the firewall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Jouni&lt;/P&gt;</description>
    <pubDate>Tue, 23 Dec 2014 12:14:15 GMT</pubDate>
    <dc:creator>Jouni Forss</dc:creator>
    <dc:date>2014-12-23T12:14:15Z</dc:date>
    <item>
      <title>Strange NAT problem</title>
      <link>https://community.cisco.com/t5/network-security/strange-nat-problem/m-p/2566357#M201937</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have ASA 5515, ASA version: 9.3(1), ASDM version: 7.3(1)101.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to create some port forwardings,&amp;nbsp;but every time get:&amp;nbsp;ERROR: NAT unable to reserve ports.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found out, that this somehow connected with service objects.&lt;/P&gt;&lt;P&gt;For example, I want to publish my RDP server:&lt;/P&gt;&lt;P&gt;object service rdp&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; service tcp destination eq 3398&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;object service rdp-outside&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; service tcp destination eq 3333&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;object network rdp-server&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; host 192.168.1.2&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;nat (inside,outside) source static drp-server interface service rdp &lt;SPAN style="font-size: 14px;"&gt;rdp-outside&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;ERROR: NAT unable to reserve ports.&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;This error appears if I try to accomplish this through ASDM-gui both if I try to create NAT rule manually and through network object&lt;SPAN style="font-size: 14px;"&gt;(Add automatic address translation rule)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;The only way I can create port mapping is if I remove rdp and rdp-otside service objects and configure NAT in&amp;nbsp;&lt;SPAN style="font-size: 14px;"&gt;network object(Add automatic address translation rule).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;Can someone help me?&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;Thanks!&lt;/P&gt;&lt;P style="font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 05:15:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/strange-nat-problem/m-p/2566357#M201937</guid>
      <dc:creator>bondandrey</dc:creator>
      <dc:date>2019-03-12T05:15:27Z</dc:date>
    </item>
    <item>
      <title>Hi, The Manual NAT / Twice</title>
      <link>https://community.cisco.com/t5/network-security/strange-nat-problem/m-p/2566358#M201938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Manual NAT / Twice NAT configuration you have shown above seems to have the &lt;STRONG&gt;"service" &lt;/STRONG&gt;configuration wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format of the command is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nat (sourceint,destint) source static &amp;lt;source real&amp;gt; &amp;lt;source mapped&amp;gt; service &amp;lt;source service real&amp;gt; &amp;lt;source service mapped&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when you look at the above format you will notice that if you are doing Static PAT (Port Forward) you would need to configure the &lt;STRONG&gt;"object service"&lt;/STRONG&gt; in the following way&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object service RDP&lt;BR /&gt;&amp;nbsp;service tcp source eq &amp;lt;port&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now that you have &lt;STRONG&gt;"destination"&lt;/STRONG&gt; there it will actually match the translation when the connection is coming from&lt;STRONG&gt; "inside"&lt;/STRONG&gt; towards &lt;STRONG&gt;"outside"&lt;/STRONG&gt; with the mapped destination port. So no actual Static PAT is performed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you wanted to use Auto NAT / Network Object NAT the configuration is much simpler. I personally pretty much always use this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object network &amp;lt;object name&amp;gt;&lt;BR /&gt;&amp;nbsp; host &amp;lt;real ip&amp;gt;&lt;BR /&gt;&amp;nbsp; nat (sourceint,destint) static &amp;lt;interface or actual ip&amp;gt; service tcp &amp;lt;real port&amp;gt; &amp;lt;mapped port&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If with either of these configurations the ASA gives the error message then make sure that the mapped port is not used in another NAT configuration. If there is no clear problem then it might be some bug. I have had this happen a couple of times and I have had to reboot the firewall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Jouni&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2014 12:14:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/strange-nat-problem/m-p/2566358#M201938</guid>
      <dc:creator>Jouni Forss</dc:creator>
      <dc:date>2014-12-23T12:14:15Z</dc:date>
    </item>
  </channel>
</rss>

