Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Double NAT ?

On an ASA 5520 ver 8.0(4) I have the following NAT senario:

From my private interface "b2b-bastion" I want the following translation to occur when a packet goes from interface b2b-bastion to the external interface "b2b-dmz" and returns:

b2b-bastion (packet in):

src -

dest -

b2b-dmz (packet out)

src -

dest -

Conversely, I want returned traffic from to translate as follows:

b2b-dmz (packet in)

src -

dest -

b2b-bastion (packet out):

src -

dest -

Basically, the network on b2b-bastion interface sees as The network on b2b-dmz sees as

Any ideas on how to get this to work? No VPN tunnels involved here.


Re: Double NAT ?

static (b2b-bastion, b2b-dmz) access-list 100

static (b2b-dmz, b2b-bastion) access-list 101

access-list 100 pemrit ip host host

access-list 101 permit ip host host

the above dose 50% of what u want

i think not sure u may need two device to get fully nated as u want it " not sure"

New Member

Re: Double NAT ?

With the assumption that: inside=b2b-bastion and outside=b2b-dmz

static (b2b-dmz,b2b-bastion) netmask

static (b2b-bastion,b2b-dmz) netmask

That is if I am understanding your conditions completely. A single ASA can bi-directionally NAT this just fine.

Try to think of in these terms:

outside NAT --> static (outside,inside) local_ip global_ip netmask

inside NAT --> static (inside,outside) global_ip local_ip netmask

The "global_ip"s are the NAT'd "real" addresses that the external networks will be reaching.

Hope that helps.

Re: Double NAT ?

hi Matthew

u mean the above nating will be prossed two times in each direction ?

New Member

Re: Double NAT ?

Yes with bidirectional statics both the source and destination networks will be translated depending on the direction they are heading through the firewall. Assuming I understood the original question completely.

Viewing the xlate table on the firewall with the command "sh xlate det" will display both the NAT translations as the firewall sees them.

There are drawbacks to using "outside NAT" but it is beyond the scope of the question I think.

Re: Double NAT ?

ok this is what i know and expected to be done

but if u look on his question he wants the source and dist to be translated when going out and the smae when going back

while i think urs and mine dose 50% of this

am i right ?

New Member

Re: Double NAT ?

Thanks to all for your replies. I do have the static NATs in place as suggested and when I use the trace tool on the GUI (ASDM) it seems like it should work and the xlates look fine, it just doesn't pass traffic through the firewall from b2b-bastion out b2b-dmz.

One thing I left out in my hast to get this message out was that the network (for is not directly connected to the b2b-dmz interface. It is on the other side of a gateway that the b2b-dmz points to. I tried putting a routing statement in for pointing to this gateway out the b2b-dmz interface; however, it still does not pass traffic. The gateway address is

Any ideas?

Re: Double NAT ?

if u can post a simple drown topology for u network !

New Member

Re: Double NAT ?

If you have other routers to pass through along the way you will want to move the nat operation to the last hop routers on each side where those RFC 1918 networks are reachable via the server's local_ip.

Something like this:

172 host <-> NAT firewall <-> NAT router <-> 192 host

Re: Double NAT ?

which is exactly like what i suggested in my first post " u need other device to do nating with firewall" this way u will do part of nating on the firewall and the other on the router

good luck


Re: Double NAT ?

When it comes to complex NAT, you need a

Checkpoint firewall to do the job for you.

Cisco ASA does not do a very good of complex

NAT. Even when you get it to work,

maintaining it is a pain in the ass.

What you described, I just tested and get it

to work on Checkpoint Firewall in 5 minutes,

and that it worked on the very first attempt.

Re: Double NAT ?

i think the issue above with a cisco firewall not a comerison between vendors features

New Member

Re: Double NAT ?

Attached is a drawing of what I'm trying to do (in jpeg format).

Re: Double NAT ?

i think now everything is fune exept the

try the following

creat a loopback interface on the router

interface loopback 0

ip address

assumeing that the is /24

on the ASA add the following route

route b2b-dmz

again the mask of the must be right if it is not /24 put the right one instead

now we will nat the on the firewall as following

static (b2b-bastion, b2b-dmz) netmask

and make sure there is and ACL on the b2b-dmz that allow traffic from network or only from host going to

now on the router we will make the nat inside as the interface connected to the server i will consider it as fa0/0

and the nat outisde i will make it on the loopback0 as it is in deffrent network which is

ip nat inside source static

on the interface facing the server do


ip nat inside

interface loopback0

ip nat outside

if didnt work try to make the foolwing addetion

access-list 100 permit ip host host

route-map nating

match ip address 100

ip nat inside source static route-map nating

good luck

the only problem with the 69. network that why i made loopbackinterface

if the treck didnt work u need to change the 69 network with IP in 208 network range then 100% will work

try it and let me know

IMPORTANT after u finish all nating config reload both the router and the Firewall then test it

New Member

Re: Double NAT ?

Thank you for this solution.

So is there no way to do a double NAT on the ASA? I have an ACL that allows traffic between the two destination hosts, I see the translations in the xlate table, it just doesn't route out the b2b-dmz interface to get to I've tried this routing statement on the ASA but it doesn't seem to work:

route b2b-dmz 1

Re: Double NAT ?

the problem with 69

u have two way either change the 69 network ip with an ip in the 208 network

or try to creat the loopback and make the ip as i mentioned and make a route for that ip point to the router interface

this is i mean based on the two nats on the ASA

and let me know

good luck

New Member

Re: Double NAT ?

I did your first suggestion of doing a NAT on the ASA and a NAT on the router. That worked so I'll go with that.

Many thanks to all the contributors to this issue!

Re: Double NAT ?

u mean u created loopback and everything as i mentioned?

and congrtulations anyway:)

if helpful Rate

Re: Double NAT ?

thanks for rating

i just wanna make sure the loopback idea worked because i just thought about it logicaly


New Member

Re: Double NAT ?

You pointed me in the right direction about separating the NATs on two seperate devices; however, the gateway is really another ASA with a VPN tunnel to the network ( host). So I didn't use a loopback address but used the following static NAT statement:

static (external,b2b-dmz) netmask

Sorry but I did not want to complicate my senario with the ASA VPN concentrator since I was originally trying to double NAT on our ASA firewall that is behind the ASA VPN concentrator which is the gateway to our firewall for our VPN connections.

Thanks Again!