Solved

"Backwards" NAT Rules on a Cisco ASA 5505

Posted on 2014-12-12
6
357 Views
Last Modified: 2014-12-22
Take a look at the 2 NAT rules on my Cisco ASA 5505. They exist to allow port 4430 and port 8001 traffic to travel from the the outside interface on the firewall to the server (10.20.2.3). They both work perfectly, and yet they both look completely backwards.

Note the inside"interface specified in the top left. It's the outside interface on the firewall that traffic is hitting and these NAT rules exist to handle.
Similarly, the Original/Source values and the Translated/Interface values seem ass-backwards, yet they work.

NAT Rules
0
Comment
Question by:jdana
[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
  • 3
  • 3
6 Comments
 
LVL 28

Accepted Solution

by:
Jan Springer earned 500 total points
ID: 40496395
It looks backwards because you are mapping the inside to the outside.
0
 

Author Comment

by:jdana
ID: 40496398
Jan Springer, please elaborate.
0
 
LVL 28

Expert Comment

by:Jan Springer
ID: 40496410
using cli where outside subnet is 172.16.34.0/24 without port forwarding):

static (outside,inside) 192.168.10.1 172.16.34.72 netmask 255.255.255.255

means maps the outside interface to the inside IP using the outside IP to the inside interface.

it would make more sense to have the inside to inside and outside to outside.
0
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 

Author Comment

by:jdana
ID: 40496714
Jan, Forgive my ignorance, I'm not a network guy. Is it reasonable to simplify this construct with the following "laymanish" statement, "The NAT Rule creates a "pathway" between the firewall's outside interface and the network interface of my server. As long as matching firewall rules exist allowing traffic, the NAT Rule is bi-directional. That is, it facilitates traffic both ways." A NAT rule based on the outside firewall interface would work as well.
0
 
LVL 28

Expert Comment

by:Jan Springer
ID: 40496770
The NAT rule takes a packet destined to an IP address, translates it and forwards the packet to the translated address.

And yes, a rule needs to exist both ways for consistent traffic flow.
0
 

Author Closing Comment

by:jdana
ID: 40512757
THANKS
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Palo Alto Networks: Can you limit traffic to a specific URL 2 30
Access-List 15 61
Mac address in Nexus7K fex port 5 43
can you connect modem to 2 routers 42 24
For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty. Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
Many of the companies I’ve worked with have embraced cloud solutions due to their desire to “get out of the datacenter business.” The ability to achieve better security and availability, and the speed with which they are able to deploy, is far grea…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

737 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