Wed 5 Dec 2007
In previous tutorials, I showed you how to configure a branch office ipsec vpn and how to configure nat overload on an internet router. This tutorial will combine the two.

Traffic destined for the VPN tunnel cannot be natted. It needs to travel through the vpn tunnel untranslated. A special nat configuration must be used to prevent vpn "interesting" traffic from being translated while still translating normal internet bound traffic.
There are two ways to prevent outbound VPN traffic from being translated ( access-list or route-map ) but only one way for inbound traffice ( route-map ) . I prefer to use a route-map because I only have to build the route-map configuration once and it can be used for both inbound and outbound nat statements. Here is a Cisco document explaining NAT for IPSec VPNs.
Here is the short list of commands
router#config t
router(config)#
router(config)#ip access-list extended NAT
router(config-ext-acl)#deny ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
router(config-ext-acl)#permit ip any any
router(config-ext-acl)#
router(config-ext-acl)#exit
router(config)#
router(config)#route-map POLICY-NAT 10
router(config-route-map)#match ip address NAT
router(config-route-map)#
router(config-route-map)#exit
router(config)#
router(config)#ip nat source route-map POLICY-NAT interface s0/0 overload
router(config)#
router(config)#ip nat inside source static tcp 192.168.1.10 25 12.34.56.2 25 route-map POLICY-NAT extendable
router(config)#
router(config)#interface f1/0
router(config-if)#ip nat inside
router(config-if)#
router(config-if)#interface s0/0
router(config-if)#ip nat outside
router(config-if)#
router(config-if)#end
router#
router# copy run start
This static nat part was not shown in the video tutorial but the command is listed above. The above example translates smtp traffic for public ip address 12.34.56.2 to internal server 192.168.1.10.

(9 votes, average: 4.11 out of 5)








January 17th, 2008 at 1:31 am
Hi,
Please me the link of your privious tutorial link.
Thanks in advance
January 17th, 2008 at 8:42 am
http://www.blindhog.net/cisco-how-to-configure-an-ipsec-vpn/
http://www.blindhog.net/cisco-how-to-configure-nat-overload-pat/
May 24th, 2008 at 3:35 am
i would like to thank you
this really helpful , not only this topic but every LAB u do is really helpful in my work or as I’m trying to take my CCNP
… just wanna say thanx and keep up the good work
May 25th, 2008 at 3:54 pm
@zidan, You’re welcome. Glad to hear they have helped.
June 10th, 2008 at 2:00 pm
excellent. Its really helpful.
August 11th, 2008 at 9:12 pm
Nice job. It’s difficult for beginners to realize how to manage NAT, ACLs and VPN tunnels.
August 12th, 2008 at 11:00 pm
Thanks Andrew