cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
381
Views
10
Helpful
1
Replies

NAT Port Range Forwarding various internal IPs

cdegroat82
Beginner
Beginner

I have a Cisco 2911 running c2900-universalk9-mz.SPA.152-4.M5.bin.  I am trying to figure out a way to port forward various ports on a single public address, to multiple internal destination ips/subnets.  For instance port 21 will foward to the FTP server but ports 80, 5000, & 10000-20000 to the web server.  So far the only method that seems to work is line by line, IE: 

ip nat inside source static udp 10.58.1.15 10000 interface GigabitEthernet0/0 10000

ip nat inside source static udp 10.58.1.15 10001 interface GigabitEthernet0/0 10001

ip nat inside source static udp 10.58.1.15 80 interface GigabitEthernet0/0 80

ip nat inside source static tcp 10.26.7.10 21 interface GigabitEthernet0/0 21

 

And so on.  Is there any easier way then generating 10k lines of config to perform a simple task?  If something like a standard home router and do this I feel there is an easier way unless I am missing something.

 

Thanks in advance!

 

-Chris

1 Reply 1

omarali875
Beginner
Beginner

Pretty much sailing in the same boat

I have to forward around 15 ports and I was wondering if i could do wildcard masking allowing a range of ports altogether rather than going about by doing each and every one of them manually. 

 

 

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: