Solved

Cisco NAT question

Posted on 2013-01-30
2
389 Views
Last Modified: 2013-01-30
We have a Cisco ASA 5505 as firewall and trubble with NAT.

Firewall public IP: x.x.x.193.
Incoming traffic works fine, NAT of public ip x.x.x.194 to x.x.x.209 translates to private IP y.y.y.194 to y.y.y.209.

The problem is that outgoing traffic from local servers with IP y.y.y.194 (up to y.y.y.209) NAT through firewall via main IP x.x.x.193 not from x.x.x.194 (up to x.x.x.209).

Outgoing traffic from other local addresses in network y.y.y.0/24 routes correct via x.x.x.193.


Parts of config attached.
Cisco-ASA-conf.txt
0
Comment
Question by:AITP
2 Comments
 
LVL 20

Accepted Solution

by:
rauenpc earned 500 total points
ID: 38835327
A static NAT will normally take priority over an auto-NAT or Object nat. Although the line

nat (inside,outside) source dynamic any interface

Contains a dynamic source, it is still considered a static nat as it is not attached to a specific object.
If you do a "show nat" you will end up with at least two sections - "Manual NAT Policies (Section 1)" and "Auto NAT Policies (Section 2)"
These are processed in order, which means the static nat translating anything to the outside interface will happen before the object nat defined for servers to be translated to x.x.x.209.
You have two choices. If you change the static nat to specify its priority to be after-auto, you should be in good shape.

nat (inside,outside) after-auto source dynamic any interface

Or you can make an "any" object and do the dynamic nat there. Remember that nat is still done in order, so after making this object nat check the order of nats using "sh nat" to make sure the servers are before the all-encompassing any nat.

object network obj-any
subnet 0.0.0.0 0.0.0.0
 nat (inside,outside) dynamic interface




http://www.cisco.com/en/US/docs/security/asa/asa84/configuration/guide/nat_overview.html
0
 

Author Closing Comment

by:AITP
ID: 38835502
Worked perfect, did first suggested solution.
Thanx!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

If you have an ASA5510 then this sort of thing would be better handled with a CSC Module, however on an ASA5505 thats not an option, and if you want to throw in a quick solution to stop your staff going to facebook during work time, then this is the…
Overview The Cisco PIX 501, PIX 506e, ASA 5505 and ASA 5510 (most if not all of this information will be relevant to the PIX 515e but I do not have a working configuration handy to verify the validity) are primarily used within small to medium busi…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

19 Experts available now in Live!

Get 1:1 Help Now