Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-21-2002, 08:30 AM
|
#1
|
Member
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111
Rep:
|
enable telnet but can't telnet from the computer
Hey guys,
I am having a weird problem. I can't telnet from WAN. But I managed to telnet from my LAN. Do you guys have any idea about it. I really don't have any clue. Thank you appreciate that!!
guanyu
|
|
|
08-21-2002, 09:19 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
can you give some actual information here? where are you trying to telnet to? what errors do you get? please provide useful information in your posts in future, thanks.
|
|
|
08-21-2002, 10:57 PM
|
#3
|
Member
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111
Original Poster
Rep:
|
Well my msg is "Could not open a connection to xxx.xx.xxx.xx. I guess something with my ip. I need to cofigure ip so that i can telnet from outside. Is that rite? I am not sure about it
|
|
|
08-22-2002, 10:00 AM
|
#4
|
Member
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182
Rep:
|
What I gather is that you are trying to connect to your own computer from the internet and it's not working.
Telnetting from your own computer to somewhere on the internet does work.
Is this correct?
If so and if you are sure you want to enable the telnet service on your computer, you probably have to enable it in /etc/xinetd.d/telnet.
That file most likely contains a line:
disable = yes
Change this to "no" and it should work.
Keep in mind that everything you type on a telnet connection is sent over the network unencrypted. Someone in between could sniff your passwords and hack your box. If you want more security, consider using SSH instead.
|
|
|
08-22-2002, 08:14 PM
|
#5
|
Member
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111
Original Poster
Rep:
|
Giffon,
Thank for replying. I can telnet from my internal(192.168.xx.xxx). But I cannot telnet from WAN(or other ISP). For instance, 68.2.xx.xxx. I had already enable the telnet feature otherwise my internal computer won't be able to telnet. That's my problem. Thanks
GuanYu
|
|
|
08-23-2002, 02:32 AM
|
#6
|
Member
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182
Rep:
|
Check the /etc/hosts.allow and /etc/hosts.deny files.
man hosts.allow
|
|
|
08-23-2002, 11:16 AM
|
#7
|
LQ Newbie
Registered: Jan 2001
Location: Raleigh, NC
Posts: 11
Rep:
|
Your internal "192" address would imply a NAT translation is taking place. Are you using a router? If so, did you open up the telnet port?
|
|
|
08-24-2002, 06:47 PM
|
#8
|
LQ Newbie
Registered: Aug 2002
Posts: 1
Rep:
|
Certain IP addresses are reserved for private use and are not routable across the internet. Routers on the internet recognize these ip addresses and "drop" them.
Because your local wan is using 192.x you "can't get there from here".
There is a way though... Your router to the internet uses NAT to "rewrite" the IP addresses comming in and out of your LAN. You could configure a static forwarding entry in the router that basicaly says "forward incoming port 23 to the internal ip address 192.x.x.x (server ip)"
BTW: It is better to use ssh, telnet uses unencrypted passwords
|
|
|
08-26-2002, 06:34 AM
|
#9
|
Member
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111
Original Poster
Rep:
|
JamesLittle,
No No. I wanna connect to my server instead of my local computer which mean connect to Eth0. I don't wan forward to my local. What I want just let me telnet to my server(cox ISP).
|
|
|
All times are GMT -5. The time now is 08:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|