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

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 192.168.0.1 22 interface Ethernet0 22

The above will port forward external ip to 192.168.0.1 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 -> 192.168.0.1 22

public_net_b/24 port 22 -> 192.168.0.2 22

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

2 REPLIES
Bronze

Re: source specific port forwarding

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

http://www.cisco.com/en/US/products/sw/iosswrel/ps1839/products_feature_guide09186a0080087bac.html

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.

109
Views
4
Helpful
2
Replies
CreatePlease login to create content