[AndrayK 3]. Yes, that was DNS timeout indeed. After I added all
my boxes to /etc/hosts, and include “lookup file bind” int
/etc/resolv.conf, both FTP and Telnet servers work as expected.
Thanks a lot, Xiaodan.
Could this be a DNS timeout?
Both ftpd and telnetd will try to resolve caller.
make sure you caller is in RTP box’s /etc/hosts,
and the “lookup file bind” is enabled.
-xtang
Andray Kaganovsky <> andreyk@home.com> > wrote:
[AndrayK 2]. Thanks for the hint, Xiaodan. Here is the log:
inetd -d &
[1] 540702
ADD : time proto=udp, wait=0, user=root builtin=804ce0c
server=internal
ADD : time proto=tcp, wait=0, user=root builtin=804cdfc server=internal
ADD : ftp proto=tcp, wait=0, user=root builtin=0 server=/usr/sbin/ftpd
ADD : telnet proto=tcp, wait=0, user=root builtin=0
server=/usr/sbin/telnetd ADD : shell proto=tcp, wait=0, user=root
builtin=0 server=/usr/sbin/rshd ADD : login proto=tcp, wait=0,
user=root
builtin=0 server=/usr/sbin/rlogind ADD : tftp proto=udp, wait=1,
user=root builtin=0 server=/usr/sbin/tftpd ADD : netstat proto=tcp,
wait=0, user=root builtin=0 server=/usr/bin/netstat ADD : phrelay
proto=tcp, wait=0, user=root builtin=0 server=/usr/bin/phrelay
ftp 192.168.0.17
someoConnected to 192.168.0.17.
ne wants ftp
accept, ctrl 3 spawn (/usr/sbin/ftpd): pid 548898
At that point ftp hangs for 40 seconds, and then continues:
220 unix-1 FTP server (Version 5.60) ready.
Name (192.168.0.17:root): root
331 Password required for root.
Password:
From that point on it continues as normal FTP session.
ftp> bye
221 Goodbye.
548898 reaped
The same kind of delay happens with Telnet server as well, also when
spawning /usr/bin/telnetd.
Is there any way to eliminate these annoying 40 seconds delays ?
regards, Andray
Xiaodan Tang <> xtang@qnx.com> > wrote in news:9jnvhn$o5g$> 1@nntp.qnx.com> :
Andray Kaganovsky <> andreyk@home.com> > wrote:
I have replaced Intel 100 PRO+ NIC (“speedo”) with 3C905B-TX card, and
discovered that FTP and Telnet servers stoped working. I can ping
other hosts (NT and FreeBSD4.1), and ftp from QNX6.1 box into other
hosts, but I can’t neither ftp nor telnet into QNX6.1 box. This box
has IP 192.168.0.17; I can ftp without problems into ‘localhost’, but
can’t ftp to 192.168.0.17 (i.e. self). The ftp command simply hangs
and never gives me ‘user’ prompt; when I abort it, I see the following
error message:
421 Service not available, remote server has closed connection
The entries for FTP and telnet are uncommented in /etc/inetd.conf,
‘inetd’ is started.
I tried the following:
slay inetd
slay io-net
io-net -d el900 -ptcpip
ifconfig en0 192.168.0.17 netmask 255.255.255.0 up # route add
default 192.168.0.1 # inetd
and the following:
slay inetd
slay io-net
io-net -d el900 -p ttcpip
if=en0:192.168.0.17:255.255.255.0,default=
192.168.0.1 # inetd
without any success - ping works, ftp from QNX6.1 box works, but attempts
to ftp into QNX6.1 box hang. Same is true for Telnet.
I am running latest 6.1 software that I have downloaded from QSSL
website.
The box itself is pretty much the standard pc, P2-400, 128 MByte of RAM.
Any help is greatly appreciated.
For start, I would say run inetd with “-d”, also, keep syslogd started
(if you restart io-net, you better restart syslogd) is a good habbit.
-xtang