LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-25-2001, 04:47 PM   #1
bauld
LQ Newbie
 
Registered: Oct 2001
Location: Raleigh, NC, USA
Distribution: RH7.2 + LFS
Posts: 21

Rep: Reputation: 15
hair puller...


Trying to get telnet to work... Have a labtop and desktop both running RH7.1. They are connected thru linksys WAP/hub.

Am trying to get telnet to work so I can do desktop work from my labtop from remote locations in my home.

Whenver I telnet, it fails with "icmp port unreachable". I'm running tcpdump. This icmp packet comes back after the first outging tcp segment.

- I have enabled telnet in /etc/xinetd.d/telnet
- xinetd is running
- I explicitly have the laptop and desktop IPs in the /etc/hosts file

I'm really pulling my hair out, and would appreciate any helpful tips or pointers.

Thanks,

Brian
 
Old 10-25-2001, 05:26 PM   #2
bauld
LQ Newbie
 
Registered: Oct 2001
Location: Raleigh, NC, USA
Distribution: RH7.2 + LFS
Posts: 21

Original Poster
Rep: Reputation: 15
I have looked through previous posts related to telnet problems ...to no avail.

I keep running into recommendations for the use of ssh as opposed to telnet. That day might come, but for now, it's not my primary concern as the linksys router is the only element viewable to the outside world.

Any pointers greatly appreciated.

Brian
 
Old 11-08-2001, 11:30 AM   #3
bauld
LQ Newbie
 
Registered: Oct 2001
Location: Raleigh, NC, USA
Distribution: RH7.2 + LFS
Posts: 21

Original Poster
Rep: Reputation: 15
Still no luck. I'm at my wits end. Can someone take a look at this and tell me what I'm missing here.

Basically, all I'm trying to do is telnet from one machine to another from within my home network. Each box is running RH7.1 ... one a labtop with a wireless PC card, the other a desktop that was setup with a 'server installation'.

Server Config Info

/etc/host.conf
order hosts,bind

/etc/hosts.allow
ALL:LOCAL

/etc/hosts.deny
All:ALL

/etc/hosts
127.0.0.1 localhost.localdomain localhost

192.168.1.100 <-- server
192.168.1.101
192.168.1.102
192.168.1.10 <-- laptop


/etc/xinetd.conf
defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
}

includedir /etc/xinetd.d


/etc/xinetd.d/telnet
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}


rpm -qa | grep telnet
telnet-0.17-10
telnet-server-0.17-10


ps -ef | grep xinetd
root 811 1 0 Nov07 ? 00:00:00 xinetd -stayalive -reuse -pidfil
root 3820 1170 0 12:11 pts/1 00:00:00 grep xinetd



Well, that's about all the information info I can think of. Below, I summarize two cases, the first where I telnet from the server to itself, and the second the failing scenario when I try to telnet from the laptop to the server. I could only cut&past from the machine I'm posting from (server), so I didn't include much client info.

Test Case 1: Telnet from server to itself

[root@localhost /etc]# telnet 192.168.1.100
Trying 192.168.1.100...
Connected to 192.168.1.100.
Escape character is '^]'.

Red Hat Linux release 7.1 (Seawolf)
Kernel 2.4.2-2 on an i686
login:


So, I can telnet to the server from the server. When I run tcpdump, there are no messages so I guess the request comes back through 127.0.0.1.

Test Case 2: Telnet from laptop to server
(I can't cut and paste as I'm posting this from the server machine, so bear with me...)
prompt> telnet 192.168.1.100
Trying 192.168.1.100...
telnet: Unable to connect to remote host: Connection refused

The following is the tcpdump output run on the server when the command in 'test case 2' is entered:

12:27:43.266626 .32770 > .telnet: S 3617006866:3617006866(0) win 5840 <mss 1460,sackOK,timestamp 108640[|tcp]> (DF)
12:27:43.266626 > : icmp: tcp port telnet unreachable (DF) [tos 0xc0]



...That's it. I want to be able to do work on the server from my laptop from within my home
 
Old 11-08-2001, 11:35 AM   #4
bauld
LQ Newbie
 
Registered: Oct 2001
Location: Raleigh, NC, USA
Distribution: RH7.2 + LFS
Posts: 21

Original Poster
Rep: Reputation: 15
I got cut off there at the end of my post. My keyboard on the server went bezerk and I was not longer able to type. I think most of the key info was communicated in the previous post, so I'll leave it at that.

Let me know if you need anymore info...

Thanks in advance for any suggestions.
 
Old 02-10-2002, 08:58 AM   #5
simmer
LQ Newbie
 
Registered: Feb 2002
Location: India
Distribution: Sun solaris, red hat
Posts: 3

Rep: Reputation: 0
Hi i have just joine dthe list and found that u r still in trouble.
see i can say one thing that ur problem in not at all related to linux box of ur office . please see some configurations in ur router.
Try seeing access control lists, which are generally implemented to restrict the traffic comming in to the network.

regards,
simmer.
 
Old 02-11-2002, 07:59 AM   #6
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
As far as I can see your telnet server is running. But you are just blocking connections. hosts.allow states that all services for LOCAL should be enabled. LOCAL as far as I know should be localhost (127.0.0.1). So that explains why you can connect to it from the server. Obviously you'd want to connect in a few more ways then that.
The easiest would be to add a line in hosts.allow like:
in.telnetd:ALL

you could also change it to:
in.telnetd:192.168.1.10

That would give the laptop permission to connect. Don't forget to restart the xinetd server after editing the file.
 
Old 02-15-2003, 03:32 AM   #7
mayankjohri
Member
 
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158

Rep: Reputation: 30
remove
all:all from the hosts.deny file and restart the system and every thing should work
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
yes my hair is falling out cumbakwindoz Linux - Newbie 9 02-24-2007 02:11 PM
Tearing my hair out!! kcommins Linux - Software 6 08-29-2005 03:36 PM
I'm pulling my hair out here.. Emanon247 Linux - Newbie 3 07-20-2004 02:17 PM
noob losing hair over 2.6.4 Slinky Slackware 0 03-14-2004 03:41 PM
Pulling out hair again... Ludacris Linux - Networking 8 12-22-2002 02:21 AM

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

All times are GMT -5. The time now is 10:14 AM.

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