<?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 Port redirection question in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/port-redirection-question/m-p/1378657#M738021</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ASA doing port redirection as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static (inside,outside) tcp 2.2.2.2 80 192.168.10.2 8080&lt;/P&gt;&lt;P&gt;static (inside,outside) tcp 2.2.2.2 25 192.168.10.3 2525&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, whatever traffic comes to IP 2.2.2.2 on port 80 is redirected to IP 192.168.10.2 to port 8080, and traffic coming to the same IP on port 25, is redirected to IP 192.168.10.3 on port 2525.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly. But my problem is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traffic sourced from IPs 192.168.10.2 and 192.168.10.3 to the Internet, is not translated to 2.2.2.2, but to the IP of the outside interface of the ASA (because I'm doing PAT for outbound traffic). So, I'm having a normal behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is just this:&lt;/P&gt;&lt;P&gt;I want confirmation that the static statements above apply only for inbound traffic.&lt;/P&gt;&lt;P&gt;And, is there a way to make the outgoing traffic NATed to the IP 2.2.2.2 for these servers?&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nat (inside) 5 192.168.10.2 255.255.255.255&lt;/P&gt;&lt;P&gt;nat (inside) 5 192.168.10.3 255.255.255.255&lt;/P&gt;&lt;P&gt;global (outside) 5 2.2.2.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make the NAT consistent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Federico.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 17:03:22 GMT</pubDate>
    <dc:creator>Federico Coto Fajardo</dc:creator>
    <dc:date>2019-03-11T17:03:22Z</dc:date>
    <item>
      <title>Port redirection question</title>
      <link>https://community.cisco.com/t5/network-security/port-redirection-question/m-p/1378657#M738021</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ASA doing port redirection as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static (inside,outside) tcp 2.2.2.2 80 192.168.10.2 8080&lt;/P&gt;&lt;P&gt;static (inside,outside) tcp 2.2.2.2 25 192.168.10.3 2525&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, whatever traffic comes to IP 2.2.2.2 on port 80 is redirected to IP 192.168.10.2 to port 8080, and traffic coming to the same IP on port 25, is redirected to IP 192.168.10.3 on port 2525.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly. But my problem is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traffic sourced from IPs 192.168.10.2 and 192.168.10.3 to the Internet, is not translated to 2.2.2.2, but to the IP of the outside interface of the ASA (because I'm doing PAT for outbound traffic). So, I'm having a normal behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is just this:&lt;/P&gt;&lt;P&gt;I want confirmation that the static statements above apply only for inbound traffic.&lt;/P&gt;&lt;P&gt;And, is there a way to make the outgoing traffic NATed to the IP 2.2.2.2 for these servers?&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nat (inside) 5 192.168.10.2 255.255.255.255&lt;/P&gt;&lt;P&gt;nat (inside) 5 192.168.10.3 255.255.255.255&lt;/P&gt;&lt;P&gt;global (outside) 5 2.2.2.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make the NAT consistent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Federico.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 17:03:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/port-redirection-question/m-p/1378657#M738021</guid>
      <dc:creator>Federico Coto Fajardo</dc:creator>
      <dc:date>2019-03-11T17:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Port redirection question</title>
      <link>https://community.cisco.com/t5/network-security/port-redirection-question/m-p/1378658#M738039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct and this is your solution.&lt;/P&gt;&lt;P&gt;nat (inside) 5 192.168.10.2 255.255.255.255&lt;/P&gt;&lt;P&gt;nat (inside) 5 192.168.10.3 255.255.255.255&lt;/P&gt;&lt;P&gt;global (outside) 5 2.2.2.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, why with just the static pat for outbound translation it doesn't get translated to 2.2.2.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Think of this the server 192.168.10.3 going to google. Its source port for example is 33333 and the destination is 80 will it match your static?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static (inside,outside) tcp 2.2.2.2 25 192.168.10.3 2525&lt;/P&gt;&lt;P&gt;Absolutely not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have this static 1-1&lt;/P&gt;&lt;P&gt;static (inside,outside) 2.2.2.2 25 192.168.10.3&lt;/P&gt;&lt;P&gt;Then it will work for both incoming and out going.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I explained it such that you understand if perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-KS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 18:06:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/port-redirection-question/m-p/1378658#M738039</guid>
      <dc:creator>Kureli Sankar</dc:creator>
      <dc:date>2010-01-29T18:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Port redirection question</title>
      <link>https://community.cisco.com/t5/network-security/port-redirection-question/m-p/1378659#M738058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Federico.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 18:28:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/port-redirection-question/m-p/1378659#M738058</guid>
      <dc:creator>Federico Coto Fajardo</dc:creator>
      <dc:date>2010-01-29T18:28:57Z</dc:date>
    </item>
  </channel>
</rss>

