What is difference between nat (inside,outside) and nat (outside,inside) in asa 8.4 ?

HI Expert
Can you explain what is difference between nat (inside,outside) and nat (outside,inside) in asa 8.4 for the following two kind of command  ?

Here is topology  1.1.1.2-----------(outside1.1.1.1)-ASA -(inside10.1.1.1)------------10.1.1.2
There are two king of static nat commands:
1
object network Inside
host 10.1.1.2
nat (inside,outside) static 1.1.1.1

2
object network Outside
host 1.1.1.2
nat (outside,inside) static 10.1.1.1

Since the static nat is bidirectional, I do not think it has difference. Do you think so ? Thank you
EESkyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alan Huseyin KayahanCommented:
host j.j.j.j
nat (interfaceX,interfaceY) static n.n.n.n

Has two functions

Replace the source IP address of any packet entering ASA from interfaceX and departing ASA from interfaceY, with the IP address n.n.n.n.
Replace the destnation IP of any packet entering ASA from interfaceY and destined to n.n.n.n, with the IP address j.j.j.j

Note that j.j.j.j is an IP with a live node whereas n.n.n.n is not and utilized by the firewall on behalf of j.j.j.j

Therefore the two examples you have given does not reflect a bidirectional behaviour of a single scenario. They are two different scenarios.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EESkyAuthor Commented:
Thank you so much for your fast reply. The formula of Nat that you gave is very good. Usually we just use nat (inside,outside) and we barely use nat (outside,inside). Can you tell in what situation, we need to use nat (outside,inside) ?
0
Alan Huseyin KayahanCommented:
You are welcome!
ASA treats the subnets of VPNs terminated at outside interface as outside (unlike Cisco routers where tunnel interface maybe different to assaing to a zone in ZBF).
So if you have multiple VPN tunnels (S2S or RA) terminated at outside interface and you need a transitive connectivity (for instance you have tunnels from site A to site B and site C to site B and you want site A to be able to reach site C through site B), you need Outside NAT. This is known as U-turn. nat (outside,outside)
Outside NAT also comes handy in VPN scenarios where both sides of the S2S tunnel are the same (overlapping networks). nat (outside,inside)
0
Feroz AhmedSenior Network EngineerCommented:
Hi,

NAT is defined as Network Address Translation which when in the given scenario is defined as whenever inside IP address when it goes outside or Inside IP address when it travels outside network {Nat (Inside,outside)} it travels outside with a different IP Address.

Supposing the above scenario is Nat (inside,outside) and in this scenario inside ip address is 10.1.1.1 and when it travels from inside to outside it travels with an ip address 10.1.1.72 and this scenario is called as NATTING.

To know real inside ip address one should type below command on ASA
ASA#debug icmp
This will show when someone from outside network trying to ping the inside network pinging with different ip address .
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Cisco

From novice to tech pro — start learning today.