1838263 Members
3578 Online
110125 Solutions
New Discussion

Re: telnet session

 
Ho, KK
New Member

telnet session

Dear All
My HP-UX B.10.01 can not establish a telnet/ftp session in from other system, but it can make a telnet/ftp session out. I had already restarted inetd too and the output of netstat -an as follows:
....
tcp 0 0 *.23 *.* listen
tcp 0 0 *.21 *.* listen
.....
and inetd.sec contains the following entries:
....
spc allow 127.0.0.1
mserve allow 127.0.0.1
.....
and no host.allow or host.deny file under /etc
15 REPLIES 15
Ravi_8
Honored Contributor

Re: telnet session

Hi.

#/usr/sbin/inetd
never give up
Ho, KK
New Member

Re: telnet session

The problem is still existed althrough start the daemon /usr/sbin/inetd again
Robin Wakefield
Honored Contributor

Re: telnet session

Can you try toggling the logging by typing:

inetd -l

and see if anything is displayed when you try and connect.

rgds, Robin
Mohamed_14
Occasional Advisor

Re: telnet session

Hi

check your routing table ,sometimes a corrupted routine table can give problems like this .
#netstat -r
#/usr/sbin/initd stop
#route -f
#/usr/sbin/initd start

stop inetd flush your routine table and restart inetd.

live free or die
live free or die
Mohamed_14
Occasional Advisor

Re: telnet session

Hi

sorry inetd not initd /usr/sbin/inetd

sorry again
live free or die
T G Manikandan
Honored Contributor

Re: telnet session

Possible reasons could be like

1.inetd not running.if inetd is running is telnet and ftp lines inside the /etc/inetd.con file enabled and not commented.You should do a inetd -c to re-read the configuration file for changes.

2.Duplicate ip-address on the network.

What messages are you getting while doing a telnet

Also check your /var/adm/syslog/syslog.log file for any hint.

Thanks

Jose Mosquera
Honored Contributor

Re: telnet session

Hi,

Have you checked some "telnet allow|deny" definition in the /var/adm/inetd.sec?

To more info "man inetd.sec"

Rgds.
Ron Kinner
Honored Contributor

Re: telnet session

What happens if you try to telnet to yourself?

Ron
Ho, KK
New Member

Re: telnet session

Dear All

All the above methods I had already tried, however the error still existed.

But most interesting thing that I can telnet itself by using localhost.
Jeff Schussele
Honored Contributor

Re: telnet session

Name resolution?
I've seen localhost defined to A host in DNS before.
Look at resolution order in nsswitch.conf & then pursue it in that order.

Rgds,
Jeff (It's usually basic)
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Ron Kinner
Honored Contributor

Re: telnet session

Does it make any difference if you telnet to the ip address rather than the hostname?

Ron
Alex Lavrov
Regular Advisor

Re: telnet session

Hi, I had something like this
in hpux 11.11 (superdome).

I think, when you telnet your system, it tried to resolve your hostname and just times out with DNS.

You should try these 2 things (helped in my case):

1. route add
2. look in your /etc/nsswitch.conf file (create it if needed) and disable dns resolving

I think it should help.
pap
Respected Contributor

Re: telnet session

Hi ,
What exact error messages you are getting when you try to telnet your machine from another machine.? Please post that message.

Also. check your /var/adm/inetd.sec file, it must be the culprit of this problem in most of the cases. If any entry for particular IP ranges then please remove them and restart inetd using "inetd -c" command.

Thanks,

-pap
"Winners don't do different things , they do things differently"
Ho, KK
New Member

Re: telnet session

Dear All
The telnet output message from the same subnet host ip address 172.22.61.80 is

#telnet 172.22.61.81
Trying ...
telnet: Unable to connect to remote host: Connection timed out
#

#ping 172.22.61.81
64 bytes from 172.22.61.81: icmp_seq=0. time=0.ms
64 bytes from 172.22.61.81: icmp_seq=0. time=0.ms
64 bytes from 172.22.61.81: icmp_seq=0. time=0.ms
#

and inetd.sec contains the following entries:
....
spc allow 127.0.0.1
mserve allow 127.0.0.1
.....

also no host.allow or host.deny file under /etc

thanks
Ron Kinner
Honored Contributor

Re: telnet session

Just for fun add telnet and ftp to inetd.sec or just rename the file to something else so it can't find it.

Ron