cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
451
Views
0
Helpful
1
Replies

NAT TCP port forwarding and VPN's

PNTECH
Level 1
Level 1

Hello,

In the past I have had no problems handling static one to one NAT mappings along with IPSEC VPNs. However, in trying to do TCP port mappings, the standard way of delaing with the static mappings is not working, the internal server that has the NAT mapping can no longer communicate out to the Internet. Can anyone tell me what is wrong with the below config that has TCP port mappings?

My first guess is I need to kill the line in 107 denying Dynamic NAT since I want the server to be able to establish outbound connections on any port. But Will it conflict with the static port mappings ?

Here is the NAT portion of the config::

ip nat inside source list 107 interface Ethernet0/0 overload

ip nat inside source static tcp 172.16.1.2 25 x.x.x.x 25 extendable

ip nat inside source static tcp 172.16.1.2 3389 x.x.x.x 3389 extendable

!

!

access-list 107 remark DENY DYNAMIC NAT FOR VPN

access-list 107 deny ip host 172.16.1.2 any

access-list 107 deny ip 172.16.1.0 0.0.0.255 172.16.4.0 0.0.0.255

access-list 107 permit ip 172.16.1.0 0.0.0.255 any

access-list 108 permit ip host 172.16.1.2 172.16.4.0 0.0.0.255

!

route-map nonat2 permit 10

match ip address 108

set ip next-hop 1.1.1.2

1 Reply 1

umedryk
Level 5
Level 5

You did not mention the version, however, from what I understand from the part of configurations, I guess this is 11.3; You can try with a later version.