10-23-2006 12:27 PM - edited 03-05-2019 12:23 PM
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!
10-23-2006 01:26 PM
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
10-23-2006 06:40 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide