LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-01-2001, 01:01 PM   #1
Emperor
LQ Newbie
 
Registered: May 2001
Posts: 4

Rep: Reputation: 0

I'm running Redhat 7.1 with the latest build of xinetd and I've been running into this snag in setting up a telnet server. I've gotten to the point where I can connect to the server from the machine it is on, but not from any other machines. I have ALL:ALL in my hosts.allow and I have only_from = 0.0.0.0/0 in my xinetd.conf. Any ideas? thanx for your time.
 
Old 05-02-2001, 05:36 PM   #2
mrl
Member
 
Registered: Apr 2001
Posts: 37

Rep: Reputation: 15
Hi There,

I am a newbie so don't take this as gospel ..

Have you edited /etc/xinnetd.d/telnet ?

If not open it up and look for the line
'disable = yes' and change it to 'disable = no' , it is disabled by default on RH7.1

If that does'nt work you may need to add the service in /etc/services

This is all I had to do to get it working here.
Best luck,
Mike
 
Old 05-03-2001, 06:32 PM   #3
Emperor
LQ Newbie
 
Registered: May 2001
Posts: 4

Original Poster
Rep: Reputation: 0
Thanx, i did leave the disable=yes flag on, but after changing it i still get nothing. I can get in from the same machine the telnet server is on, but not from any other machine. I always seem to be missing a tiny detail, any other ideas?
 
Old 05-04-2001, 01:44 AM   #4
Justinw
LQ Newbie
 
Registered: Apr 2001
Posts: 21

Rep: Reputation: 15
Hi,

I'm also no expert, but I think you also need to tell the system who the clients are that are connecting. If you try telnet from another machine it'll try to do a reverse lookup to identify the client before letting you connect.

The easiest way to check if this is a problem would be to add a machine into your hosts file (if your system uses it) and then try.

Regards,
 
Old 05-04-2001, 07:06 AM   #5
raz
Member
 
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31
Remove all data from the /etc/hosts.allow and hosts.deny files.

Then we know it's not something wrong in these.

Now make sure your /etc/xinetd.conf file looks like this:
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST RECORD
}

includedir /etc/xinetd.d

---
Now look at the file in the /etc/xinetd.d directory called: telnet

Should look like this:
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}

Now if this doesn't work after this it's a routing problem to your system.

/Raz
 
Old 05-04-2001, 06:32 PM   #6
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
stupid question

Are you trying to telnet from the other machines and login as "root"? By default, thats not allowed.
 
Old 05-06-2001, 12:51 AM   #7
Emperor
LQ Newbie
 
Registered: May 2001
Posts: 4

Original Poster
Rep: Reputation: 0
I'm not even getting to the login part of the connect process. I tried all that with my files and I still get the same problem. I'm not sure its an issue with routing because in windows I can set up an ftp server and it can easily be accessed from anywhere. When I attempt to connect from another machine all it says is "Trying...." which is more than I get from a machine without a Telnet server set up, so its obviously seeing something. Thanx for the help so far, any other ideas or comments?
 
Old 05-07-2001, 07:46 AM   #8
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Okay.. so lets break it down.

1. You can connect from the local machine, presumably as a regular user.

2. You are not having any other obvious networking issues with the Linux machine.

3. You can not get Telnet access remotely using the same user that worked locally.

Questions:
How many NIC's in the machine?

Does /var/log/messages or /var/log/security show anything
about your connection attempts?

Can you 'ssh' from another machine?

Any router or firewall or switch between the you and the telnet server?

Are you sure you have proper name resolution going on at each end?

Have you tried putting an entry in the /etc/hosts file for the client machine that is trying to connect?
 
Old 05-07-2001, 01:13 PM   #9
Emperor
LQ Newbie
 
Registered: May 2001
Posts: 4

Original Poster
Rep: Reputation: 0
It has only 1 NIC. The logs only notice the internal connection attempts. I havent installed SSh yet cuz i just wanted something simple to get started, guess the jokes on me. There's no router and no firewall. No need for name resolution because im connecting directly via IP address. I tried putting the IP address of the other machine and ALL:ALL in the hosts.allow file. Still nothing. If you have the time I can email you the IP address and you can see the errors yourself. I do appreciate the help tho.
 
Old 05-07-2001, 01:36 PM   #10
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Email me the IP at kevin@joubert.com if you want to.

If the logs don't show conn attempts from the outside, they aren't getting there. You said no firewall or router.. what about a switch?

You should clear all references to telnet out of both /etc/hosts.allow and /etc/hosts.deny (at least till we get this figured out)

Have you done anything with PAM?


Do a successful local connection, and unsuccessful remote connection, then send me the /var/log/messages and /var/log/secure files. All of them.

 
Old 05-09-2001, 07:36 AM   #11
val
LQ Newbie
 
Registered: May 2001
Location: NYC
Distribution: RH
Posts: 20

Rep: Reputation: 0
Exclamation keep me posted please

i'm having the same problem. if anyone solves this problem, please post about it =)
 
Old 05-10-2001, 05:30 AM   #12
mostyn
LQ Newbie
 
Registered: May 2001
Posts: 2

Rep: Reputation: 0
Unhappy same problem here

I have the exact same problem with my new install of Redhat 7.1 after turning on telnet I can login on the local Linux box however when I try and telnet to the box from another machine I get a Trying..... then connection failed. Nothing is logged in the /var/log/secure or /var/log/messages logs for the remote telnet attempt no entries exist for the hosts.allow / hosts.deny and it is an ip connection with only a hub between the two machines Ping is OK (BTW Cannot FTP either) . Would really like to know if anyone knows the magic phrase to fix all of this

Thanks
 
Old 05-10-2001, 06:15 AM   #13
val
LQ Newbie
 
Registered: May 2001
Location: NYC
Distribution: RH
Posts: 20

Rep: Reputation: 0
heh, maybe i'll get flamed for this...
but this is my first time using RH, and even if i forget about this problem, i really expect more from it anyway.
SuSE anyone? =)
 
Old 05-12-2001, 06:18 AM   #14
val
LQ Newbie
 
Registered: May 2001
Location: NYC
Distribution: RH
Posts: 20

Rep: Reputation: 0
wheeeeee! lol
fixed it!
problem with ipchains
well.. not a problem.. it was configured to block all tcp connections from port 0 to 1023
so yeah, anyone who's having a problem, check out /sbin/ipchains -L
and then /etc/sysconfig/ipchains
good luck!
 
Old 05-12-2001, 11:00 AM   #15
yogotie
Member
 
Registered: Mar 2001
Distribution: Slackware 9.0
Posts: 32

Rep: Reputation: 15
anoying problems

I see somebody else had ipchains interfering with the network. I once had a problem like that took me too long to figure it out. That was really anoying.

Linux can get really anoying sometimes!
When it does go and boot Windows. When it crashes 30 seconds later boot Linux. Works great. Windows has such great timeing wish I could do that.
 
  


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
ftp+telnet server problems svar Linux - Software 4 10-30-2005 04:02 AM
Telnet Server Roga Danar Linux - Newbie 7 07-14-2003 01:10 PM
can't telnet to the server guanyu Linux - Networking 1 07-13-2002 03:42 PM
telnet server? ReSync Linux - General 9 07-04-2002 04:06 PM
Telnet server - how to? captnroger Linux - General 3 02-28-2001 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:52 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