<?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 DNS Doctoring (Re-write) with PAT on 8.4 in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/dns-doctoring-re-write-with-pat-on-8-4/m-p/1732153#M533618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, this makes sense!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2011 23:54:33 GMT</pubDate>
    <dc:creator>Logan Kampsnider</dc:creator>
    <dc:date>2011-08-23T23:54:33Z</dc:date>
    <item>
      <title>DNS Doctoring (Re-write) with PAT on 8.4</title>
      <link>https://community.cisco.com/t5/network-security/dns-doctoring-re-write-with-pat-on-8-4/m-p/1732151#M533616</link>
      <description>&lt;P&gt;I have a client that has a Cisco ASA 5505 on 8.4 and needs to do DNS Doctoring. They have a /30 public IP range, so they only have one IP on their outside interface that we PAT to any inside services, such as an e-mail server or RDP access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DNS Re-write was extremely easy to configure via 8.2 and below with a configuration such as:&lt;/P&gt;&lt;P&gt;"static (inside,outside) 172.20.1.10 192.168.100.10 netmask 255.255.255.255 &lt;STRONG style="font-weight: bold;"&gt;dns"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8.4 seems more complicated. I've found a TON of examples on how to do DNS Re-write on 8.4, but they all seem to be for NAT examples. Here is basically an example of how the above config is supposed to translate to in 8.4 according to the examples I found:&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: monospace; white-space: pre; color: #000000;"&gt;object network obj-192.168.100.10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre; color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre; color: #000000;"&gt; host 192.168.100.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre; color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre;"&gt; nat (inside,outside) static 172.20.1.10 &lt;STRONG style="font-weight: bold;"&gt;dns"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above config appears to be for a NAT situation in which all traffic for 172.20.1.10 is directed at the inside host of 192.168.100.10. Even with this appearance, I attempted the command anyways on my client's ASA only to be greeted with a warning that says "all traffic on the specified outside interface will now be directed towards the specified host." Regardless of this message, I was still able to access the network and I tried to ping from an internal host to the external URL that was supposed to re-write to the inside host and thus the ping would resolve to 192.168.100.10. It did not work, but because of the error message I received after typing in the re-write command I undid the change after about 30 seconds. Perhaps I didn't wait long enough?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically my question is how do I do DNS re-write for a public IP that is PAT'd to multiple inside hosts? Thanks!!!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 21:11:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/dns-doctoring-re-write-with-pat-on-8-4/m-p/1732151#M533616</guid>
      <dc:creator>Logan Kampsnider</dc:creator>
      <dc:date>2019-03-11T21:11:16Z</dc:date>
    </item>
    <item>
      <title>DNS Doctoring (Re-write) with PAT on 8.4</title>
      <link>https://community.cisco.com/t5/network-security/dns-doctoring-re-write-with-pat-on-8-4/m-p/1732152#M533617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Logan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ASA doesn't support DNS re-write for PAT rules. The reason is that since DNS replies (what the ASA looks for to do the re-write) don't contain any reference to a port (only a hostname and IP address), the ASA has no way of knowing which PAT rule to use for the rewrite. Imagine if the DNS reply came back with the PAT address. How would the ASA know which internal host it was referring to? This is described further in the configuration guide:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/en/US/docs/security/asa/asa84/configuration/guide/inspect_basic.html#wp1543568"&gt;http://www.cisco.com/en/US/docs/security/asa/asa84/configuration/guide/inspect_basic.html#wp1543568&lt;/A&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;DNS Rewrite is not applicable for PAT because multiple PAT rules are applicable for each A-record and the PAT rule to use is ambiguous.&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Aug 2011 16:56:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/dns-doctoring-re-write-with-pat-on-8-4/m-p/1732152#M533617</guid>
      <dc:creator>mirober2</dc:creator>
      <dc:date>2011-08-20T16:56:09Z</dc:date>
    </item>
    <item>
      <title>DNS Doctoring (Re-write) with PAT on 8.4</title>
      <link>https://community.cisco.com/t5/network-security/dns-doctoring-re-write-with-pat-on-8-4/m-p/1732153#M533618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, this makes sense!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 23:54:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/dns-doctoring-re-write-with-pat-on-8-4/m-p/1732153#M533618</guid>
      <dc:creator>Logan Kampsnider</dc:creator>
      <dc:date>2011-08-23T23:54:33Z</dc:date>
    </item>
    <item>
      <title>DNS Doctoring (Re-write) with PAT on 8.4</title>
      <link>https://community.cisco.com/t5/network-security/dns-doctoring-re-write-with-pat-on-8-4/m-p/1732154#M533619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can you please help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below confirm works from externally, we the user try to access the webmail from internal network using 126.66.18.29 dns re rewrite not working.&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;object network 192.168.100.28-3389&lt;/P&gt;&lt;P&gt; host 192.168.100.28&lt;/P&gt;&lt;P&gt; nat (inside,outside) static 126.66.18.29 service tcp 3389 3382 &lt;/P&gt;&lt;P&gt;object network 192.168.100.30-3389&lt;/P&gt;&lt;P&gt;host 192.168.100.28&lt;/P&gt;&lt;P&gt; nat (inside,outside) static 126.66.18.29 service tcp 3389 3381 &lt;/P&gt;&lt;P&gt;object network 192.168.100.10-25&lt;/P&gt;&lt;P&gt;host 192.168.100.28&lt;/P&gt;&lt;P&gt; nat (inside,outside) static 126.66.18.29 service tcp smtp smtp &lt;/P&gt;&lt;P&gt;object network 192.168.100.10-443&lt;/P&gt;&lt;P&gt;host 192.168.100.28&lt;/P&gt;&lt;P&gt; nat (inside,outside) static 126.66.18.29 service tcp https https &lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;Tried to apply the below to enabled DNS doctoring but all other portforwarding is stop working.&lt;/P&gt;&lt;P&gt;object network 192.168.100.10-443-DNS&lt;/P&gt;&lt;P&gt;host 192.168.100.28&lt;/P&gt;&lt;P&gt; nat (inside,outside) static 126.66.18.29 dns&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have removed the dns rerewrite to bring the service up for all other port forwarding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know how to fix this.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;SS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 03:12:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/dns-doctoring-re-write-with-pat-on-8-4/m-p/1732154#M533619</guid>
      <dc:creator>ssengotaiyan</dc:creator>
      <dc:date>2012-11-26T03:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Doctoring (Re-write) with PAT on 8.4</title>
      <link>https://community.cisco.com/t5/network-security/dns-doctoring-re-write-with-pat-on-8-4/m-p/1732155#M533620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be best if you could post a new topic for a new question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as the question is already asked no need to i guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the looks of your configurations all the Port Forward configurations point to the same internal host?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the IP 126.66.18.29 dedicated to be used only with 192.168.100.28 or is it some shared IP address that is already used in some other configurations too that you might have not posted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the IP 126.66.18.29 is only used for internal host 192.168.100.28 you DONT NEED Port Forward configurations for each service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing you tried last should have been enough without the Port Forward configurations. Then again your object names almost seem like you meant to configure some other IP address under the object as the names include things like "192.168.100.30", "192.168.100.10"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't say for sure what would be needed to be done as I'm not 100% sure about your NAT setup and available public IP addresses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your configurations seems to reflect that you would have done 2 remote desktop Port Forwards for two hosts, yet your configuration in the post says the host for both Port Forward configuration is the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Jouni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 08:18:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/dns-doctoring-re-write-with-pat-on-8-4/m-p/1732155#M533620</guid>
      <dc:creator>Jouni Forss</dc:creator>
      <dc:date>2012-11-26T08:18:31Z</dc:date>
    </item>
  </channel>
</rss>

