Cisco Support Community
Community Member

NAT Port Range Forwarding various internal IPs

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 10000 interface GigabitEthernet0/0 10000

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

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

ip nat inside source static tcp 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!



Everyone's tags (1)
Community Member

Pretty much sailing in the

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. 



CreatePlease to create content