Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Cisco NAT question

Posted on 2013-01-30
2
Medium Priority
?
404 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 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
In this article, the configuration steps in Zabbix to monitor devices via SNMP will be discussed with some real examples on Cisco Router/Switch, Catalyst Switch, NAS Synology device.
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 …
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

885 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