Solved

Cisco NAT question

Posted on 2013-01-30
2
396 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cisco 3650 switch 7 65
Setting up NAT translation for RDP 6 55
Cisco IPSec lan to lan tunnel - encryption domain. 3 57
Edge switch problems cisco 2960 25 48
There are many useful and sometimes not well documented or forgotten IOS or ASA/PIX commands. See IPE article here , there was also one on PacketU and on Cisco Tips & Tricks. Below are my favorites. I give also a few most often used for Cisco IPS an…
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

685 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