<?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 Cisco ASA PAT port range depending on source-ip-address? in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/cisco-asa-pat-port-range-depending-on-source-ip-address/m-p/5278710#M1120488</link>
    <description>&lt;P&gt;Is it possible to have defined outside source-port-range in PAT depending on the source-ip-address network?&lt;BR /&gt;E.g.&amp;nbsp;&lt;BR /&gt;Outside-NAT, using outside-NAT address 18.66.27.86.&lt;BR /&gt;TCP-sessions coming from 192.168.1.0/24 uses port-range 30000-39000 as source-ports on outside-if.&lt;BR /&gt;TCP-sessions coming from 192.168.2.0/24 uses port-range 40000-49000 as source-ports on outside-if.&lt;BR /&gt;But I do now know which source-ports the devices use, they might use larger port-range as source.&lt;BR /&gt;&lt;BR /&gt;192.168.1.1:21001 -&amp;gt; 18.66.27.86:30000&lt;BR /&gt;192.168.1.2:49011 -&amp;gt; 18.66.27.86:30001&lt;BR /&gt;-------------------------------------&lt;BR /&gt;192.168.2.1:39109 -&amp;gt; 18.66.27.86:40000&lt;BR /&gt;192.168.2.2:32417 -&amp;gt; 18.66.27.86:40001&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Apr 2025 11:35:56 GMT</pubDate>
    <dc:creator>chris-doro</dc:creator>
    <dc:date>2025-04-06T11:35:56Z</dc:date>
    <item>
      <title>Cisco ASA PAT port range depending on source-ip-address?</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-pat-port-range-depending-on-source-ip-address/m-p/5278710#M1120488</link>
      <description>&lt;P&gt;Is it possible to have defined outside source-port-range in PAT depending on the source-ip-address network?&lt;BR /&gt;E.g.&amp;nbsp;&lt;BR /&gt;Outside-NAT, using outside-NAT address 18.66.27.86.&lt;BR /&gt;TCP-sessions coming from 192.168.1.0/24 uses port-range 30000-39000 as source-ports on outside-if.&lt;BR /&gt;TCP-sessions coming from 192.168.2.0/24 uses port-range 40000-49000 as source-ports on outside-if.&lt;BR /&gt;But I do now know which source-ports the devices use, they might use larger port-range as source.&lt;BR /&gt;&lt;BR /&gt;192.168.1.1:21001 -&amp;gt; 18.66.27.86:30000&lt;BR /&gt;192.168.1.2:49011 -&amp;gt; 18.66.27.86:30001&lt;BR /&gt;-------------------------------------&lt;BR /&gt;192.168.2.1:39109 -&amp;gt; 18.66.27.86:40000&lt;BR /&gt;192.168.2.2:32417 -&amp;gt; 18.66.27.86:40001&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Apr 2025 11:35:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-pat-port-range-depending-on-source-ip-address/m-p/5278710#M1120488</guid>
      <dc:creator>chris-doro</dc:creator>
      <dc:date>2025-04-06T11:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco ASA PAT port range depending on source-ip-address?</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-pat-port-range-depending-on-source-ip-address/m-p/5278762#M1120489</link>
      <description>&lt;P&gt;On Cisco ASA firewall it's not possible to directly define source-port ranges for PAT based on the source IP network using standard NAT configuration. The ASA's PAT implementation doesn't support granular port-range assignments to specific source subnets.&lt;/P&gt;&lt;P&gt;By default, the ASA uses these port ranges for translations&lt;/P&gt;&lt;P&gt;Block 1: 0–511&lt;/P&gt;&lt;P&gt;Block 2: 512–1023&lt;/P&gt;&lt;P&gt;Block 3: 1024–65535&lt;BR /&gt;Ports are allocated within the same block as the original source port. This behavior can’t be overridden to enforce subnet-specific ranges like 30000–39000 for 192.168.1.0/24. &lt;A href="https://netcraftsmen.com/dynamic-pat-cont-with-pools-flat-round-robin-and-extended-pat/" target="_self"&gt;Source Link website&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the flat keyword allows ports 1024–65535 for all translations, but this applies globally and can’t be restricted to specific subnets &lt;A href="https://www.reddit.com/r/ccnp/comments/g6s1dy/cisco_asa_dynamic_pat_pat_pool_options_notes/" target="_self"&gt;Source link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Possible work-around you can apply&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;! For 192.168.1.0/24  
object network PAT-IP-1  
  host 18.66.27.86  
nat (inside,outside) source dynamic 192.168.1.0/24 pat-pool PAT-IP-1 flat  

! For 192.168.2.0/24  
object network PAT-IP-2  
  host 18.66.27.87  # Second external IP  
nat (inside,outside) source dynamic 192.168.2.0/24 pat-pool PAT-IP-2 flat  &lt;/LI-CODE&gt;&lt;P&gt;Option 2 Workaround&lt;/P&gt;&lt;P&gt;Enable extended PAT to track destination IP/port, increasing concurrent translations&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nat (inside,outside) source dynamic 192.168.1.0/24 pat-pool PAT-IP-1 extended  
nat (inside,outside) source dynamic 192.168.2.0/24 pat-pool PAT-IP-1 extended  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Apr 2025 20:35:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-pat-port-range-depending-on-source-ip-address/m-p/5278762#M1120489</guid>
      <dc:creator>Sheraz.Salim</dc:creator>
      <dc:date>2025-04-06T20:35:50Z</dc:date>
    </item>
  </channel>
</rss>

