<?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, Notice that the in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524547#M236455</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice that the configuration you try does not modify the real source port at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you are using the same &lt;STRONG&gt;"object"&lt;/STRONG&gt; for the real/mapped service then the configuration above matches traffic where the connections destination is &lt;STRONG&gt;"any"&lt;/STRONG&gt; and the destination is &lt;STRONG&gt;"udp 6000 65535"&lt;/STRONG&gt; and only when the source is &lt;STRONG&gt;"udp sip"&lt;/STRONG&gt; and in that event it keeps the exact same &lt;STRONG&gt;"udp sip"&lt;/STRONG&gt; source port as you are using the same &lt;STRONG&gt;"object".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if its a software or configuration related issue but I have not gotten this to work reliably on my ASA. I might have to try some other software level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you would want to match the SIP source port in the Dynamic PAT and avoid using the SIP port as the mapped port?. With that in mind I was thinking something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object service UDP-SIP&lt;BR /&gt;&amp;nbsp;service udp source eq sip&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object service UDP-SIP-MAPPED&lt;BR /&gt;&amp;nbsp;service udp source range 30000 31000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nat (VoiP,outside) source dynamic &amp;lt;source network object&amp;gt; interface service UDP-SIP UDP-SIP-MAPPED&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though it seems the above configuration seems to be bypassed by the ASA completely and it seems to use the identical source port as the mapped port even though it matches the configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I were to change the above configuration from &lt;STRONG&gt;"dynamic"&lt;/STRONG&gt; to &lt;STRONG&gt;"static"&lt;/STRONG&gt; then the configuration matches but it uses only the first mapped &lt;STRONG&gt;"source"&lt;/STRONG&gt; port of &lt;STRONG&gt;"30000"&lt;/STRONG&gt;. I guess it would only use a different mapped port if you used multiple real source ports also instead of the current single source port &lt;STRONG&gt;"sip".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nat (VoiP,outside) source static &amp;lt;source network object&amp;gt; interface service UDP-SIP UDP-SIP-MAPPED unidirectional&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example from my own ASA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;DYNAMIC&lt;/U&gt;&lt;/P&gt;&lt;P&gt;- Matches the configuration but doesnt map the port at all&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Phase: 5&lt;BR /&gt;Type: NAT&lt;BR /&gt;Subtype:&lt;BR /&gt;Result: ALLOW&lt;BR /&gt;Config:&lt;BR /&gt;nat (LAN,WAN) source dynamic LAN-NETWORK interface service SIP SIP-MAPPED&lt;BR /&gt;Additional Information:&lt;BR /&gt;Dynamic translate 10.0.0.123/5060 to &amp;lt;my pat ip&amp;gt;/5060&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;STATIC&lt;/U&gt;&lt;/P&gt;&lt;P&gt;- Matches the configuration and maps the source port but only uses the first mapped port from the range&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Phase: 4&lt;BR /&gt;Type: NAT&lt;BR /&gt;Subtype:&lt;BR /&gt;Result: ALLOW&lt;BR /&gt;Config:&lt;BR /&gt;nat (LAN,WAN) source static LAN-NETWORK interface service SIP SIP-MAPPED unidirectional&lt;BR /&gt;Additional Information:&lt;BR /&gt;Static translate 10.0.0.123/5060 to &amp;lt;my pat ip&amp;gt;/30000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not really sure if this configuration is reliable at all but its the only thing I can think of at the moment.&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;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jul 2014 07:18:05 GMT</pubDate>
    <dc:creator>Jouni Forss</dc:creator>
    <dc:date>2014-07-28T07:18:05Z</dc:date>
    <item>
      <title>Cisco ASA, skipping real source port number with PAT.</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524542#M236444</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Cisco ASA configuration guide says:&lt;/P&gt;&lt;P&gt;"PAT translates multiple real addresses to a single mapped IP address by translating the real address and source port to the mapped address and a unique port. &lt;STRONG&gt;If available, &lt;U&gt;the real source port number is used for the mapped port&lt;/U&gt;&lt;/STRONG&gt;. "&lt;/P&gt;&lt;P&gt;Is it possible to skip this ? I do not want to use real source port number. The issue is, when I have a PAT entry with real source port (port 5060), - SIP session doesn't work. With all the other ports numbers,- everything works.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 04:29:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524542#M236444</guid>
      <dc:creator>EvaldasOu</dc:creator>
      <dc:date>2019-03-12T04:29:36Z</dc:date>
    </item>
    <item>
      <title>It seems you are using</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524543#M236446</link>
      <description>&lt;P&gt;It seems you are using dynamic PAT for SIP. Consider using static PAT instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cups/8_0/english/integration_notes/Federation/Federation/ASAConfig_chapter.html&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jul 2014 23:21:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524543#M236446</guid>
      <dc:creator>turbo_engine26</dc:creator>
      <dc:date>2014-07-20T23:21:45Z</dc:date>
    </item>
    <item>
      <title>Thanks for your response</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524544#M236448</link>
      <description>&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sorry, but are you referring to configure 100 PAT rules for 100 VoIP phones?&lt;/P&gt;&lt;P&gt;Is there are command to specify port range for PAT without using native 5060 port?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2014 09:55:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524544#M236448</guid>
      <dc:creator>EvaldasOu</dc:creator>
      <dc:date>2014-07-27T09:55:58Z</dc:date>
    </item>
    <item>
      <title>Hi,Can you try like the below</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524545#M236450</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you try like the below for your scenario?&lt;/P&gt;&lt;P&gt;object network test&lt;BR /&gt;&amp;nbsp;subnet 10.0.0.0 255.255.255.0&lt;BR /&gt;object service testing&lt;BR /&gt;&amp;nbsp;service tcp source range 1100 1200&lt;/P&gt;&lt;P&gt;nat (in,out) source dynamic test interface service testing testing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2014 13:19:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524545#M236450</guid>
      <dc:creator>nkarthikeyan</dc:creator>
      <dc:date>2014-07-27T13:19:52Z</dc:date>
    </item>
    <item>
      <title>Hi, I tried this:object</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524546#M236453</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;object service SIP_TEST&lt;BR /&gt;&amp;nbsp;service udp source eq sip destination range 6000 65535&lt;/P&gt;&lt;P&gt;nat (VoIP,outside) source dynamic VoIP interface service SIP_TEST SIP_TEST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it looks like it doesn't work at all...&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2014 13:45:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524546#M236453</guid>
      <dc:creator>EvaldasOu</dc:creator>
      <dc:date>2014-07-27T13:45:22Z</dc:date>
    </item>
    <item>
      <title>Hi, Notice that the</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524547#M236455</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice that the configuration you try does not modify the real source port at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you are using the same &lt;STRONG&gt;"object"&lt;/STRONG&gt; for the real/mapped service then the configuration above matches traffic where the connections destination is &lt;STRONG&gt;"any"&lt;/STRONG&gt; and the destination is &lt;STRONG&gt;"udp 6000 65535"&lt;/STRONG&gt; and only when the source is &lt;STRONG&gt;"udp sip"&lt;/STRONG&gt; and in that event it keeps the exact same &lt;STRONG&gt;"udp sip"&lt;/STRONG&gt; source port as you are using the same &lt;STRONG&gt;"object".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if its a software or configuration related issue but I have not gotten this to work reliably on my ASA. I might have to try some other software level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you would want to match the SIP source port in the Dynamic PAT and avoid using the SIP port as the mapped port?. With that in mind I was thinking something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object service UDP-SIP&lt;BR /&gt;&amp;nbsp;service udp source eq sip&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object service UDP-SIP-MAPPED&lt;BR /&gt;&amp;nbsp;service udp source range 30000 31000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nat (VoiP,outside) source dynamic &amp;lt;source network object&amp;gt; interface service UDP-SIP UDP-SIP-MAPPED&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though it seems the above configuration seems to be bypassed by the ASA completely and it seems to use the identical source port as the mapped port even though it matches the configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I were to change the above configuration from &lt;STRONG&gt;"dynamic"&lt;/STRONG&gt; to &lt;STRONG&gt;"static"&lt;/STRONG&gt; then the configuration matches but it uses only the first mapped &lt;STRONG&gt;"source"&lt;/STRONG&gt; port of &lt;STRONG&gt;"30000"&lt;/STRONG&gt;. I guess it would only use a different mapped port if you used multiple real source ports also instead of the current single source port &lt;STRONG&gt;"sip".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nat (VoiP,outside) source static &amp;lt;source network object&amp;gt; interface service UDP-SIP UDP-SIP-MAPPED unidirectional&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example from my own ASA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;DYNAMIC&lt;/U&gt;&lt;/P&gt;&lt;P&gt;- Matches the configuration but doesnt map the port at all&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Phase: 5&lt;BR /&gt;Type: NAT&lt;BR /&gt;Subtype:&lt;BR /&gt;Result: ALLOW&lt;BR /&gt;Config:&lt;BR /&gt;nat (LAN,WAN) source dynamic LAN-NETWORK interface service SIP SIP-MAPPED&lt;BR /&gt;Additional Information:&lt;BR /&gt;Dynamic translate 10.0.0.123/5060 to &amp;lt;my pat ip&amp;gt;/5060&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;STATIC&lt;/U&gt;&lt;/P&gt;&lt;P&gt;- Matches the configuration and maps the source port but only uses the first mapped port from the range&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Phase: 4&lt;BR /&gt;Type: NAT&lt;BR /&gt;Subtype:&lt;BR /&gt;Result: ALLOW&lt;BR /&gt;Config:&lt;BR /&gt;nat (LAN,WAN) source static LAN-NETWORK interface service SIP SIP-MAPPED unidirectional&lt;BR /&gt;Additional Information:&lt;BR /&gt;Static translate 10.0.0.123/5060 to &amp;lt;my pat ip&amp;gt;/30000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not really sure if this configuration is reliable at all but its the only thing I can think of at the moment.&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;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2014 07:18:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524547#M236455</guid>
      <dc:creator>Jouni Forss</dc:creator>
      <dc:date>2014-07-28T07:18:05Z</dc:date>
    </item>
    <item>
      <title>Thanks for your help Jouni</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524548#M236456</link>
      <description>&lt;P&gt;Thanks for your help Jouni!&lt;/P&gt;&lt;P&gt;Yes, you are correct about the problem. To be more clear the situation looks like this.Phones uses SIP, xlate output:&lt;/P&gt;&lt;P&gt;ASA1# sh xlate | i VoIP&lt;BR /&gt;UDP PAT from VoIP:&lt;STRONG&gt;10.0.20.1/5060&lt;/STRONG&gt; to outside:&lt;STRONG&gt;10.10.10.40/36197&lt;/STRONG&gt; flags ri idle 20:25:11 timeout 0:00:30&lt;BR /&gt;UDP PAT from VoIP:&lt;STRONG&gt;10.0.20.2/5060&lt;/STRONG&gt; to outside:&lt;STRONG&gt;10.10.10.40/28564&lt;/STRONG&gt; flags ri idle 20:25:11 timeout 0:00:30&lt;BR /&gt;UDP PAT from VoIP:&lt;STRONG&gt;10.0.20.3/5060&lt;/STRONG&gt; to outside:&lt;STRONG&gt;10.10.10.40/15617&lt;/STRONG&gt; flags ri idle 20:25:11 timeout 0:00:30&lt;/P&gt;&lt;P&gt;The problem happens with a phone, which gets this translation:&lt;/P&gt;&lt;P&gt;ASA1# sh xlate | i 40/5060&lt;BR /&gt;UDP PAT from VoIP:&lt;STRONG&gt;10.0.20.10/5060&lt;/STRONG&gt; to outside:&lt;STRONG&gt;10.10.10.40/5060&lt;/STRONG&gt; flags ri idle 20:25:11 timeout 0:00:30&lt;/P&gt;&lt;P&gt;This phone can't do anything, but nothing is blocked here. I'm not sure why the problem exists, so thought it's possible to skip this translation.&lt;/P&gt;&lt;P&gt;Everything is okay with other apps, real source port PAT mapping works well...&lt;/P&gt;&lt;P&gt;I'm running ASA5512X with ASA 9.2(1) software.&lt;/P&gt;&lt;P&gt;Thanks a lot for your time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2014 12:24:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-skipping-real-source-port-number-with-pat/m-p/2524548#M236456</guid>
      <dc:creator>EvaldasOu</dc:creator>
      <dc:date>2014-07-28T12:24:16Z</dc:date>
    </item>
  </channel>
</rss>

