cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
493
Views
0
Helpful
2
Replies

NAT - Decision to NAT Based on Destination Address

ayaz.akhtar
Level 1
Level 1

I would like to configure NAT such that when packets are received on the inside interface the decision to pass those packets through the NAT process is based on the destination address, rather than on the source address?

Is this possible?

Will the following config achieve this?

ip nat inside source list 199 interface loopback 0 overload

access-list 199 permit ip 172.16.14.0 0.0.0.255 10.0.0.0 0.255.255.255

i.e. any packets that are destined for 10.x.x.x from 172.16.14.x will have there source address translated to the address assigned to the Loopback0 interface.

The objective is to translate the source address ONLY when the destination address is a public address.

Thanks in advance for your help.

2 Replies 2

guy.alexander
Level 1
Level 1

the config you want to make will work , just make sure the lopback interface is

a routed address, ussually the overload is done on the address of the interface that is connecting to the internet , but this should work too.

good luck

guy

Hi,

i thought the source-list (199) ought to be a standard access list?

This one is not a standard one!