Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
Bronze

Direct Incoming Traffic on certain TCP port to specific server

I have a Cisco 2621XM Router running IOS version 12.3(16). The router has 2 ethernet interfaces. 1 is connected to a cable modem and the other is connected to the internal LAN switch. I am trying to setup the router to forward packets coming in on a certain TCP port to a certain server. VNC is what I'm trying to use.

For example: Anything coming in on TCP port 5959 from the cable internet should go to 172.16.0.17 port 5959.

Thanks!

2 REPLIES
Cisco Employee

Re: Direct Incoming Traffic on certain TCP port to specific serv

Mike,

How about ?

ip nat inside source static tcp 172.16.0.17 5959 PublicIP 5959 extendable

Please refer the below URL for details:

http://www.cisco.com/warp/public/794/827spat.html

Let me know if it helps.

Regards,

Arul

Silver

Re: Direct Incoming Traffic on certain TCP port to specific serv

It sounds like you want to NAT behind the interface IP (required if your router gets a DHCP address. If I am right, here is a sample assuming your fa0/0 is inside, and fa0/1 is outside.

ip nat inside source static tcp 172.16.0.17 5959 interface FastEthernet0/1 5959

interface FastEthernet0/1

ip address dhcp

ip nat outside

interface FastEthernet0/0

ip nat inside

Of course, you need to add the port to your inbound ACL as well, if you have one.

-Eric

Please remember to rate all helpful posts.

222
Views
0
Helpful
2
Replies
CreatePlease to create content