LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-01-2009, 06:47 AM   #1
bathrinath
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: Disabled
Help Forwarding Telnet Port


hi.

I want to forward telnet port from 1 server to other linux server?
 
Old 09-01-2009, 07:09 AM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Why? Telnet is insecure. You can use ssh and do port forwarding. For example, we have all our printers on a private subnet and only allow the department server to talk to that subnet. I can ssh to the department server and forward port 80 from a particular printer to my desktop on a local port, say 1080. Then I can have Firefox on my desktop connect to port 1080 and I'm on the printer's web interface. It goes from me to the server over ssh.

I suppose you could do that same sort of thing with telnet. Use ssh to one server and have the telnet port forwarded back to you. I suppose you might do this with switches that don't have ssh. Same way I do with our printers.
 
Old 09-01-2009, 09:22 AM   #3
bathrinath
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by choogendyk View Post
Why? Telnet is insecure. You can use ssh and do port forwarding. For example, we have all our printers on a private subnet and only allow the department server to talk to that subnet. I can ssh to the department server and forward port 80 from a particular printer to my desktop on a local port, say 1080. Then I can have Firefox on my desktop connect to port 1080 and I'm on the printer's web interface. It goes from me to the server over ssh.

I suppose you could do that same sort of thing with telnet. Use ssh to one server and have the telnet port forwarded back to you. I suppose you might do this with switches that don't have ssh. Same way I do with our printers.
actually im working @ college.so student want to work telnet @ home so i need to forward.

In college Railnet proxy server is running for internet. student telnet server is separate server. thats why i need to forward... can u help me any other way to use telnet over internet?
 
Old 09-01-2009, 09:55 AM   #4
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
If you google "ssh port forwarding howto", there are several good links at the top of the first page. Browse through those. They give plenty of examples and explanation. I used the O'Reilly book "SSH, The Secure Shell" by Barrett and Silverman when I set mine up. For my example, my desktop is Mac OS X, the server I'm connecting through is Solaris 9, and I'm connecting to an HP printer. I opened a terminal window on my Mac, did

$ ssh me@myserver.whereami.edu 8080:172.31.55.225:80

That gives me an ssh tunnel to my server and forwards it so that when I connect to port 8080 on my Mac it gives me port 80 on the remote HP printer. The 172.31.55.255 is an IP address on a private network. So, then, in the url field on firefox, I enter `http://localhost:8080`, and I've got the web interface on the printer.

I'm not sure how your setup translates.

Maybe after you look through the google links mentioned above, you can think about it a bit and come up with some more specific questions along with more detail on what your connections are.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 05:58 AM
Unable to allocate port with port forwarding software djeepp Linux - Networking 3 01-29-2008 07:28 AM
port forwarding on Belkin 4-port Cable/DSL Gateway Router sycamorex Linux - Networking 5 03-05-2007 03:27 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration