09-12-2025 11:35 AM
Hello ,
a doubt about Manual NAT, if I have to configure static PAT, so I allow connection into my web server on dmz from outside for example.
I would have configured this:
nat (dmz,outside) source static PRIV-IP PUB-IP service TCP443 TCP443
but In one ASA that I now have to manage, I found this:
nat (outside,dmz) source static any any destination static PUB-IP PRIV-IP service TCP443 TCP443
Both are ok? Any disadvange from one to another?
Thank you.
09-12-2025 11:40 AM
NO advantage
Both same
Static NAT is bidirectional' so it work from (DMZ to outside) or from (Outside to DMZ).
I prefer using DMZ to outside' because it easy for troubleshooting.
And again you can use any of it.
MHM
09-12-2025 11:51 AM
09-13-2025 03:47 AM
nat (dmz,outside) source static PRIV-IP PUB-IP service TCP443 TCP443
this should be good enough along if you have dedicated IP with ACL policies to allow traffic.
=====️ Preenayamo Vasudevam ️=====
***** Rate All Helpful Responses *****
09-14-2025 04:27 AM
Although both are ok, the first PAT rule is more common. The use case of the second PAT rule would be when you want a host on the outside to be translated to something belonging to the DMZ segment. For instance, let's say you want the traffic coming from outside host 1.1.1.1 destined to DMZ host 172.16.0.1 on port 443/tcp to appear as if it's coming from 172.16.0.20, then in that case you use the second PAT rule. We call that outside NAT. In that case the rule would look similar to this:
object network PUB-1.1.1.1
host 1.1.1.1
object network PRIV-1.1.1.1
host 172.16.0.20
nat (outside,dmz) source static PUB-1.1.1.1 PRIV-1.1.1.1 destination static PUB-IP PRIV-IP service TCP443 TCP443
In terms of pros and cons, I would say the only con I can see with the second PAT rule is that the firewall would be using more resources to evaluate something that will never be translated which is the source any any of the hosts on the outside, so there is no point to configure the rule in that way in the first place and it's better to stick with the common configuration of the first rule.
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