cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1184
Views
4
Helpful
2
Replies

Port Forwarding For UDP Port Range

johnlloyd_13
Level 9
Level 9

hi all,

i was asked to do port forwarding for a range of UDP ports on our router. inside host is 192.168.2.150 and it needs to be mapped to a public IP 203.120.209.X. what i did was the below:

Router(config)#ip nat pool PORTFWD 192.168.2.150 192.168.2.150 netmask 255.255.255.0 type rotary

Router(config)#access-list 100 permit udp any any range 10000 10200

Router(config)# ip nat inside destination list 100 pool PORTFWD

my question is how can i ensure the 192.168.2.150 is mapped to 203.120.209.X with this kind of setup? thanks in advance!

2 Replies 2

cadet alain
VIP Alumni
VIP Alumni

Hi,

Why don't you do like this:

route-map UDPPORTS

match access-group 100

ip nat inside source static 192.168.1.50 203.120.209.x route-map UDPPORTS

Then try to connect from outside to the public address on corresponding port, do it for 2 or 3 ports to test and do sh ip nat translation to see the dynamic entries created.

Regards.

Alain.

Don't forget to rate helpful posts.

Hi Alain,

I was considering using a route map but wasn't sure how. Let me try this out when I get back to work. Thanks a lot!

Sent from Cisco Technical Support iPhone App