Solved

Cisco NAT question

Posted on 2013-01-30
2
398 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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!

Question has a verified solution.

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

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
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…
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…
Suggested Courses
Course of the Month8 days, 4 hours left to enroll

617 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