Solved

ASA 9.1 NAT basic understanding

Posted on 2014-11-26
2
405 Views
Last Modified: 2015-01-19
Hi,

on ios 9.1 - im confused about  nat - I have a statement for example that forwards (port forward in a sense) port 80 that hits an "outside" public IP object - forwards to an inside object (inside LAN) Please disregard the poor security design of doing this - the question is for my understanding of nat on 9.1

eg   object network insidewebserver
 nat (inside,outside) static outsideobject service tcp www www

it works   - however my confusion in understanding is the "nat(inside,outside) order.  It has inside first and then outside. Why?  the traffic would be coming from the outside first - Joe Smith on the internet would hit the "outside on http and then forward to the inside object.  I thought the order of (inside,outside) meant that traffic flow means "in" on inside first and then "out" on the outside. Or is that old way pre 8.3 ios thinking. -  my question is really to understand the order of nat (inside,outside) and whether it is important for nat on asa 9.1 hardware  model 5515 thanks.
0
Comment
Question by:philb19
2 Comments
 
LVL 42

Accepted Solution

by:
kevinhsieh earned 500 total points
ID: 40469362
Normally NAT is on an IP basis and doesn't care about which port, service, or direction the flow starts in. I only include the service if there is something special going on like you need to have 1 public IP point to different private IP depending on the port, or you need to translate 1 port to another. For classic NAT the NAT rule sets up the translation and an ACL controls the traffic. Even with your NAT rule you still need to configure the ACL on the outside interface to permit the tcp/80 traffic inbound.

The order of the objects in the NAT is from the higher security interface to the lower security interface, and is not related to where you expect the flow to originate from. I think it has been that way for at least 15 years. One possible issue with your NAT statement is that unless you have another NAT statement covering your server your server can't access the Internet unless the origination port is tcp/80. If there is another NAT you would see that the webserver has a different public IP than the one in your example because that only covers port 80.
0
 

Author Comment

by:philb19
ID: 40469878
Thanks for comment. I did some reading to find answer myself. Basically what I found is that the NAT on ASA is bidirectional.(basically what you have said :)   ) Also the order is "real" and then "mapped"  so real is the inside   and then mapped is the outside.  For IP address's this is reversed in the NAT statement. - So i think biderectional is the key. - if i was on the internal webserver itself surfing the net on 80 then its internal IP wold be natted to the outside IP specified in the NAT for port 80.

I got on to the internal webserver and checked this out
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now