03-06-2013 06:43 AM - edited 03-11-2019 06:10 PM
In pre-8.3, NAT had a group number to match nat to global.
How do I do this in 8.4? I need a default pat (0.0.0.0), but I also have specific pat for certain subnets. How do I keep them from overlapping? Will it check more specific nat statements first before it gets to more generic any any or 0.0.0.0?
Thanks.
Jason
03-06-2013 07:06 AM
Hi,
Generally you should consider the following things with regarding NAT in 8.3 and newer software
I suggest reading the following section of the Configuration Guide for your software. (And any related sections). They give some nice addiotional information about the NAT operations
http://www.cisco.com/en/US/docs/security/asa/asa84/configuration/guide/nat_overview.html#wp1118157
Now lets take this example situation
The "catch all" Default PAT rule
object-group network DEFAULT-PAT-SOURCE
network-object 10.0.0.0 255.0.0.0
nat (inside,outside) after-auto source dynamic DEFAULT-PAT-SOURCE interface
Where
Now if we want to create a more specific rule in the Section 3 we could do the following
object-group network SPECIAL-PAT-SOURCE
network-object 10.10.10.0 255.255.255.0
object network PAT-ADDRESS
host 1.1.1.1
nat (inside,outside) 1 after-auto source dynamic SPECIAL-PAT-SOURCE PAT-ADDRESS
Where
Example show command output from my ASA
ASA(config)# sh run nat
nat (LAN,WAN) after-auto source dynamic LAN-NETWORK interface
nat (WLAN,WAN) after-auto source dynamic WLAN-NETWORK interface
ASA(config)# show nat
Manual NAT Policies (Section 3)
1 (LAN) to (WAN) source dynamic LAN-NETWORK interface
translate_hits = 0, untranslate_hits = 0
2 (WLAN) to (WAN) source dynamic WLAN-NETWORK interface
translate_hits = 0, untranslate_hits = 0
Hitcounts are 0 because I remotely reloaded the ASA earlier today and there are no hosts turned on behind it.
The above is not the only options naturally but its based on the way I configure NAT.
Hopefully this answered your questions. Please rate or mark the question as answered if so. Naturally ask more if you need some clarifications or need to ask something more
- Jouni
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide