Click to See Complete Forum and Search --> : Can't telnet in!


sdunn
12-19-2000, 01:01 PM
I am running redhat 6.2 on a server running squid. I can surf and receive email on the linux server. I can surf on the pc's. I cannot ping any external IP's on the pc's. I can ping the internal IP of the linux box but I cannot telnet into the linux box. Does squid have somehting in it that turns telnet off. I am also using Zoomtown ADSL. What I am asking is what should i look for to let me telnet to the linux box from these pc's.

milanuk
12-19-2000, 01:26 PM
Originally posted by sdunn:
What I am asking is what should i look for to let me telnet to the linux box from these pc's.

Check your /etc/inetd.conf and see if telnet is available as a service? If so, check your /etc/hosts.allow and /etc/hosts.deny to see if something there is blocking the access.

Monte

sdunn
12-19-2000, 03:31 PM
Those files were all OK.

milanuk
12-19-2000, 03:41 PM
Ok. So there is a line in /etc/inetd.conf for telnet (that was uncommented), and your hosts.allow/deny files are set up right. What else? Are you trying to telnet as a regular user, or as root? Generally, you can't telnet as root, by default. Are you getting a prompt, and just getting denied, or can you not even connect at all?

Monte

sdunn
12-19-2000, 03:45 PM
It wont connect at all. It does not even let me attempt to login. I type telnet <ip> and it will just sit there until it errors out.

milanuk
12-19-2000, 04:33 PM
Ok. Time to get back to basics. Can you ping _from_ the linux box to the M$ clients on the internal interface. Is the internal interface working/up? Do an 'ifconfig' as root to see if it is up. If not, try 'ifconfig eth0 up'(assuming eth0 is internal iface, may not be) to bring it up(Note: I have one desktop that the cabling is in a bad place, and I periodically have to bring down the interface and bring it back up to get it working. I'm about to put it in a friggin' cron script...)

Can you telnet from the Linux box to the M$ clients? Are you able to do it by hostname or just by IP address? If just IP address, check your /etc/hosts file, and fill it out if need be. Make sure your netmask is set appropriately; this info should be available from the ifconfig entry for that interface.

Hope this helps, I'm running out of ideas here...

Monte


------------------
There are basically three kinds of men. There
are the ones who learn by reading. Then there are
the few who learn by observation. The rest just
have to pee on the electric fence for themselves.

sdunn
12-19-2000, 04:48 PM
Yes I can ping from the linux box to the Winblows boxes and vice versa.
eth1 is up and running. I shut it down and brought it back up to be sure.
I cannot telnet from Linux to windoze. I did not think that was possible to do without doing a bunch of stuff.

milanuk
12-19-2000, 04:56 PM
telnet'ing from Linux doesn't take much... just the telnet program installed... err... you do have telnet installed, right? And the telnetd, or telnet-server(something like that)? RedHat, if memory serves me right, split them into a client package and a server package somewhere around 6.1 or 6.2.

As root do a 'rpm -qpi | grep telnet' and that should spit out the names of any installed telnet programs. If telnet is installed (client _and_ server) try as a regular user 'telnet localhost'. If that doesn't work, then something is either seriously hosed, or I'd really question your hosts.allow/deny settings. Perhaps setting hosts.allow to ALL:ALL temporarily just to eliminate any doubts might be a good idea?

HTH,

Monte

milanuk
12-19-2000, 04:58 PM
Originally posted by sdunn:
I cannot telnet from Linux to windoze. I did not think that was possible to do without doing a bunch of stuff.

Whoops! My bad. But you should get some kind of response, IIRC.

Monte

sdunn
12-19-2000, 05:30 PM
I can telnet to localhost from the linux box.

milanuk
12-19-2000, 08:15 PM
Okay... so you can telnet to localhost. What about 'telnet <linbox hostname>' or 'telnet <linbox ip>'?

Monte

milanuk
12-20-2000, 10:21 AM
Well, I'm sorry, but I'm pretty much out of ideas. About the only other thing I can think of is if you have a firewall blocking port 23 or something, or perhaps squid is doing some kind of block/redirect on that port?

Monte

sdunn
12-20-2000, 10:25 AM
Hey thanks for the help. I have learned alot by looking in those files and doing the tests that you had me do. I am currently working with redhat with the problem.. I will let you know what they say

milanuk
12-20-2000, 11:53 PM
Alrighty. Email me when you get it resolved.

Thanks,

Monte