Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cisco Port Forwarding

Status
Not open for further replies.

andrew4728

Technical User
Joined
Jul 6, 2004
Messages
61
Location
US
Hey all, quicky question.
I got my cisco 2514 setup and I am trying to forward port 3389 to my main PC so I can remote into it from the outside.

my setup is CABLE MODEM <-> E0 2514 E1 <-> Switch <-> computer

The router is setup with NAT (E0 = outside), but the comp's IP is set staticly.

the routers ip is 192.168.1.1, the internal ip will be 192.168.1.X

Thank you very much for your help!
 
From what I'm seeing, It looks like I would use the ip nat command to do this? But I'm not exactly sure..

I'm still searching the web for this info as well..
Thank you
 
If your public IP from your ISP is a static, you can do something similar to this:

ip nat inside source static [private IP] [public IP]

Example:
ip nat inside source static 192.168.1.2 65.23.136.35

I am not sure how to do the same regarding an address that changes on your E0 port (assigned from your ISP via dhcp maybe?).


-rainman
 
hmm I don't think that is quite what I am trying to do..
I just want any connections that go INTO the router from the internet (cable modem) using port 3389, be automatically forwarded to a specific ip address inside the LAN (192.168.1.XXX).
That way I am able to remotely connect to my PC externally.
 
ok I found it :
ip nat inside source static tcp 192.168.1.XXX 3389 <Ext IP Addy> 3389

One question I have from here is :
being that my ext IP is through DHCP, it can possibly change on me and this static route would fail to work from there
is there any way to set this to function Dynamically ?

Thank you..
 
Try:

ip nat inside source static tcp 192.168.1.x 3389 interface Ethernet0 3389

I think that's the syntax to use the interface's address.
 
That works great, you guys pwn :)
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top