Does double NAT work

Unanswered Question
Aug 3rd, 2007
User Badges:


probably a real simple question: I have a router-ASA combination. The router's WAN interface has a public IP 123.45.67.89 and there is a small stub 192.168.1.x network in between the router and the ASA and finally the web server at 172.16.1.16 I've never done double-NAT before and I can't think of any reason that it shouldn't work, but I thought I'd do a quick post here to see if the standard NAT work should across the two devices to get to an IP on the inside LAN of the ASA? (I know it would be easier to change the ASA to be in transparent mode and not do double NAT at all, but I'm not allowed to do that)


On the router, I'll have:

ip nat inside source static tcp 192.168.1.2 80 123.45.67.89 80 extendable


On the ASA, I'll have:

static (inside,outside) tcp 192.168.1.2 www 172.16.1.16 www netmask 255.255.255.255


Will this work?

Any "gotchas" that I need to know about?


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3.7 (3 ratings)
Loading.
Jon Marshall Fri, 08/03/2007 - 23:50
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Hi Thomas


If the application is fine with NAT then using NAT twice will have no impact, it should work fine.


We have to do this a number of times and it's fine although as you say there is usually a cleaner way to do it.


HTH


Jon

sundar.palaniappan Sat, 08/04/2007 - 09:11
User Badges:
  • Green, 3000 points or more

Thomas,


I agree with Jon that it should work fine as long as the web application doesn't timeout due to any delay in additional processing by either the router/ASA. Under normal situation NAT processing on both devices should be very quick (in microseconds). The whole NAT process would be transaparent to the TCP end devices.


HTH


Sundar

grahambartlett Mon, 08/06/2007 - 04:46
User Badges:

Hi Mate


I've used double NAT quite a few times in the past and have never had any issues, but as the other lads have said - you need to make sure that the apps are NAT friendly.

Actions

This Discussion