Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

source specific port forwarding

I'm needing to setup port forwarding but need to have it based on the public source addresses..

Port forwarding on a global level is simple...

ip nat inside source static tcp 22 interface Ethernet0 22

The above will port forward external ip to pot 22..

I'm needing to do something like so. Where different port forwarding will be done based on source address. Then based on said source forward it to a different internal host

public_net_a/24 port 22 -> 22

public_net_b/24 port 22 -> 22

Basically if someone comes from one network - forward them to one internal host based upon source..


Re: source specific port forwarding

Try the new feature, Static NAT using route-maps. Look at the following URL for more details.

New Member

Re: source specific port forwarding

Thanks for your reply! I also found this to be a workaround...

ip nat inside source static 192.168.x.x extendable

Then apply a acl to the public ip. This was needed as the features mentioned in the url above doesn't work on lower end routers, ie 1600s and 1700s.

CreatePlease login to create content