The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Telnet Problem Help zanetti321 SUN Solaris 1 04-19-2008 01:27 AM
telnet problem rrlog AIX 5 09-21-2007 01:48 AM
telnet problem, help efrenba HP-UX 5 11-14-2005 02:35 PM
telnet problem in aix vjm AIX 2 08-22-2005 11:35 PM
Having problem using Telnet!!!! tahaislam UNIX for Dummies Questions & Answers 2 09-19-2001 05:51 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: May 2008
Posts: 8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Telnet Problem

I have a problem where on one unix machine I can telnet all IP addresses in the host file with no connection problem and another machine has recently started to have trouble connecting with the same host IP's on just some IP addresses where it had no trouble before. Have any ideas??
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: Nov 2006
Posts: 235
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by tazzy View Post
I have a problem where on one unix machine I can telnet all IP addresses in the host file with no connection problem and another machine has recently started to have trouble connecting with the same host IP's on just some IP addresses where it had no trouble before. Have any ideas??
maybe that server is installed with tcp wrapper.

In TCP wrapper you can specify which IP address is allowed to connect. Maybe the other host or PC using DHCP and the IP changed so previously he could get in but now couldn't.
Reply With Quote
  #3 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: May 2008
Posts: 8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
How would I check to see if tcp wrapper has been put in place or activated since we just recently started having this problem?
Reply With Quote
  #4 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: Nov 2006
Posts: 235
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by tazzy View Post
How would I check to see if tcp wrapper has been put in place or activated since we just recently started having this problem?
Search your server for a file called inetd.sec

find / -name inetd.sec -print

if you do find it back it up first before making any changes. You can edit this file on the fly there is no need for reboot or restarting any processes.

The other possibility is that the host trying to connect to the server does not have a route. to check you can do a netstat -rn

good luck
Reply With Quote
  #5 (permalink)  
Old 05-12-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,203
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
TCP wrappers uses the /etc/hosts.deny file to control access. It will produce something in the system log when a connection was blocked.

It doesn't just go activate itself so I'd bet more on the random DHCP fluff theory.
Reply With Quote
  #6 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: May 2008
Posts: 8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
There is no inetd.sec on the system. Is it possible that a network card going bad would cause the server not to be able to telnet to certain IP addresses? Things were working fine a couple of weeks ago and now just on this one machine it is not allowing to telnet to certain addresses.
Reply With Quote
  #7 (permalink)  
Old 05-12-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,203
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Is there some sort of pattern to "certain addresses"? That would indicate a routing problem, perhaps external to the machine itself. Do other things besides telnet work? What about ping, traceroute, ssh?

Are you using DHCP? Did the machine's IP address change, like, for instance, not so coincidentally around the time the problems started?

Do you have working reverse DNS, and do the other machines possibly care whether or not you do? Is there anything else on their end which might be preventing the connections?
Reply With Quote
  #8 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: May 2008
Posts: 8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Cannot FTP or ping. Traceroute does work. Something has obviously changed in configurations somewhere in the systems for this server to not connect to offsite servers like before. Our other one has no problem connecting to the same IP address. This is not a DHCP system and the IP address has not changed.
Reply With Quote
  #9 (permalink)  
Old 05-12-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,203
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
So on those hosts which you connect to, can you resolve the IP addresses of these two servers? This is just a tangent but I've found that some sites are set up to try reverse DNS, and take a lot of time if it doesn't work. ident would be another thing to look for -- do you have an ident daemon running on one host, but not on the other?

You are saying you can ping by IP address from the OK host, but not from the broken one? That would rule out anything like this. But then you shouldn't be able to traceroute either ...?
Reply With Quote
  #10 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: May 2008
Posts: 8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
I cannot ping from either which is not unusual.
Working Server:Cannot ping, can telnet, can ftp, can traceroute
Server having trouble:Cannot ping, cannot telnet, cannot ftp, can traceroute. The connection problem is only on certain IP addresses, not all on the troubled server only.
Reply With Quote
  #11 (permalink)  
Old 05-13-2008
Registered User
 

Join Date: May 2008
Posts: 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Telnet

How can i know who has telneted to my system and made some changes...?

i want know the ip of user who has telneted before
Reply With Quote
  #12 (permalink)  
Old 05-13-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,203
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
The fact that traceroute works would seem to suggest that you have a working route and a working network card. I continue to ask: can you resolve the IP address of both servers from the hosts which refuse access from one but not from the other (because that's what I think is going on here)?
Reply With Quote
  #13 (permalink)  
Old 05-13-2008
DukeNuke2's Avatar
Soulman (Moderator)
 
Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,096
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by chetanjosh15 View Post
How can i know who has telneted to my system and made some changes...?

i want know the ip of user who has telneted before
this is a new problem. please open a new thread for this!
Reply With Quote
  #14 (permalink)  
Old 05-14-2008
Registered User
 

Join Date: May 2008
Posts: 8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
What exactly do you mean by resolving the IP address? I can't see how an IP conflict is a possibility since I can telnet and ftp to some but not all the hosts from this server. And thank you for being patient with me on all of this.
Reply With Quote
  #15 (permalink)  
Old 05-14-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,203
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
If the servers are 10.20.30.40 and 10.20.30.41, does "host 10.20.30.40" return the name of the one server, and does "host 10.20.30.41" return the name of the other? That's reverse DNS, mapping an IP address back to the name of the host. (Use nslookup or dig instead of host, equivalently.)
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75