04-05-2013 03:13 AM - edited 03-11-2019 06:24 PM
Hello,
Something strange with nat command the following nat command excellent works on ASA 8.4(2) but fails on ASA 8.4(4):
nat (dmz,any) source static dmz_srv pub_srv
I perform clear xlate, shutdown interface dmz but with no success.
p.s. i have changed the nat(dmz,outside) to nat(dmz,any) in order to access dmz host by public ip
04-05-2013 03:17 AM
How is it not working?
Are you trying to translate some DMZ server local IP address to public IP address towards every interface of the ASA?
Can you perhaps share the whole NAT configuration?
You could also consider trying the "packet-tracer" command to simulate the connections that arent working so we could see whats happening with regards to the NAT.
- Jouni
04-05-2013 03:38 AM
I have lab with the same config but on ASA 8.4(2) and in this lab everything is ok, but in production when i changed
nat(dmz,outside) to nat(dmz,any) i cant access the dmz host by public ip from inside interface, at the same time in lab it works.
I have no problem with access the dmz host from outside interface in the both cases.
nat (inside,outside) source dynamic LANSUBNET outside_wlan
nat (dmz,any) source static dmz_srv pub_srv
04-05-2013 04:01 AM
Hi,
Can you test the problematic connection with the "packet-tracer" command and copy/paste output here.
I guess the command would be something like this
packet-tracer intput inside tcp
Where
If the above NAT configurations are all your current configurations truly then I would suggest the following changes
Remove them and configure them again as follows
Default PAT
object-group network DEFAULT-PAT-SOURCE
network-object
object network PAT
host
nat (inside,outside) after-auto source dynamic DEFAULT-PAT-SOURCE PAT
OR IF YOU USE THE "outside" INTERFACE AS THE PAT IP THEN USE
object-group network DEFAULT-PAT-SOURCE
network-object
nat (inside,outside) after-auto source dynamic DEFAULT-PAT-SOURCE interface
Static NAT
object network DMZ-STATIC
host
nat (dmz,any) static
I guess you could first try the "packet-tracer" command though. Though I suspect you might be running in to problem with the order of the NAT configuration
Maybe this
nat (inside,outside) source dynamic LANSUBNET outside_wlan
nat (dmz,any) source static dmz_srv pub_srv
Should be this
nat (dmz,any) source static dmz_srv pub_srv
nat (inside,outside) source dynamic LANSUBNET outside_wlan
Not really sure
- Jouni
04-12-2013 11:19 AM
The problem was in routing on the host(dmz_srv). The ASA config was ok.
Thanks Jouni for your help.
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