7 replies
by integrity
Unfortunatley you won't be able to telnet into any system through the internet to a system that has a private IP, you need to know what the public IP is.
In order to set up a static route to another router or server you can use the ip route command:
ip router 192.168.1.3 255.255.255.0 105.64.3.1
The first IP is the address at your end of the router the subnet mask or network number is after that, the last IP address is the next know hop (or router).
You do need to know both public IPs for this.
You could also try the NAT commands if the version of IOS in your router supports this:
This may give you a way around the private IP problem but again you will need to know the public IPs and they would have to be static IP addresses.
Hope this helps
by manisdas
by poltrup
You can use port forwarding/redirection on that nice unix server... Essentially, you'll be telnetting to the public address, and the unix system will know, based on the fact that it's telnet, to redirect the conversation to the internal host. It will then act as a proxy of sorts between the two hosts. (of course you will need to brush-up on NAT as well)
While it's a Linux HOWTO, this should get you started in the right direction...
http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO/forwarders.html
by manisdas
by nick korosi
I'm assuming you only have one IP address from your ISP and your router is using it... You can easily configure a static map that would allow you to do this but it would require you configuring NAT on your router, which you probably already have. Since you only want to redirect PORT 23 to your Unix server it would be ideal to map your Public-to-private address only for port 23, but if the IP is the same as your router you will probably not be able to telnet to it from the outside after this.Some Cisco devices support this (PIX Firewall), but I'm not sure which, if any, IOS supports this on a router.
The easiest way to fix this would be to get another IP address from your ISP. You can then create a Static Map for this Public address to your Unix server. You will probably want to create a pretty tight access-list as well.
by manisdas
I have already solved this problem using NAT and using 'ip nat inside source static ' command.
Thanks for all the suggestions.
by manisdas
This discussion is closed to new replies.
Trending Networks posts
Sort by Trending