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

Port forward/Nat configuration

johnny.schultz
Beginner
Beginner

We need to port forward group of outside IPs to an inside server and want to do this with as few commands as possible.  I have it working with some static port forwarding command but want to know if I can consolidate these commands into fewer commands.  Here is what I have:

ip nat inside source static tcp 10.0.3.37 21 200.0.0.33 21
ip nat inside source static tcp 10.0.3.37 80 200.0.0.33 80
ip nat inside source static tcp 10.0.3.37 443 200.0.0.33 443

ip nat inside source static tcp 10.0.3.37 21 200.0.0.34 21
ip nat inside source static tcp 10.0.3.37 80 200.0.0.34 80
ip nat inside source static tcp 10.0.3.37 443 200.0.0.34 443

ip nat inside source static tcp 10.0.3.37 21 200.0.0.65 21
ip nat inside source static tcp 10.0.3.37 80 200.0.0.65 80
ip nat inside source static tcp 10.0.3.37 443 200.0.0.65 443

ip nat inside source static tcp 10.0.3.37 21 200.0.0.66 21
ip nat inside source static tcp 10.0.3.37 80 200.0.0.66 80
ip nat inside source static tcp 10.0.3.37 443 200.0.0.66 443

So that should be enough to understand what we want to accomplish but if there are any further questions, please let me know.  I took a look at TCP load distribution NAT, however we do not want to allow all ports to the inside host.  If someone could provide their thoughts, I would appreciate it.  Thank you.

-Johnny

2 Replies 2

Mani Ganesan
Enthusiast
Enthusiast
Hi Johnny,

The feature for forwarding a range of UDP ports is not supported on Cisco IOS. 
An enhancement request has been filed for this already.
You could try this workaround below; however it does not work all the time I try.

ip nat inside source static x.x.x.x y.y.y.y  route-map NAT reversible

access-list 101 permit udp any any range X Y

route-map NAT permit 10
match ip add 101


HTH,

Mani

I am having a similar problem. How can I forward any outside address to a specific inside address and port?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: