Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2008 19:14:25 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        admin@su29.net
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: default /etc/hosts and ftp
Message-ID:  <96658558@bb.ipt.ru>
In-Reply-To: <47BEF10D.2050404@su29.net> (Alexander V. Chernikov's message of "Fri\, 22 Feb 2008 18\:58\:05 %2B0300")
References:  <62733928@bb.ipt.ru> <47BEF10D.2050404@su29.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 22 Feb 2008 18:58:05 +0300 Alexander V. Chernikov wrote:
> Boris Samorodov wrote:

> > I'm seeing a strange /etc/hosts effect with ftp to the host itself.
> > The file /etc/hosts was created while installing (this is a fresh
> > 8-CURRENT install). The lines in question from /etc/hosts:
> > -----
> > 192.168.1.100           testbox.bsam.ru testbox
> > 192.168.1.100           testbox.bsam.ru.
> > -----
> >
> > The ftp service is invoked by indetd:
> > -----
> > ftp	stream	tcp	nowait/100/100/10	root	/usr/libexec/ftpd	ftpd -ll4A
> > -----
> >
> > The effect:
> > -----
> > % fetch ftp://testbox.bsam.ru/pub/FreeBSD/ports/amd64/packages/8-bsam/Latest/portupgrade.tbz
> > load: 0.02  cmd: fetch 8217 [connec] 0.00u 0.00s 0% 2216k
> > fetch: ftp://testbox.bsam.ru/pub/FreeBSD/ports/amd64/packages/8-bsam/Latest/portupgrade.tbz: Operation timed out
> > -----
> >
> > The relevant part from netstat:
> > -----
> > Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
> > tcp4       0      0  testbox.61799          testbox.ftp            SYN_SENT
> > tcp4       0      0  *.ftp                  *.*                    LISTEN
> > -----
> >
> > If the first line at /etc/hosts is deletted/commented out (changing an
> > order of those lines doesn't help):
> > -----
> > % fetch ftp://testbox.bsam.ru/pub/FreeBSD/ports/amd64/packages/8-bsam/Latest/portupgrade.tbz
> > portupgrade.tbz                               100% of  127 kB   91 MBps
> > -----

> I'm not able to reproduce this on Feb 15 current.

> Can you check ftp availability with telnet and use 'netstat -n' ?

Yes, telnet showed me my fault -- it was a typo at /etc/hosts with
ip-address.

Thanks for your help! And sorry for the noise.

> Do you have any firewall rules possibly blocking localhost traffic?
> Host appears to use DNS in second case which can provide different IP
> address

> >
> > The host resolves direct and revers just fine.
> >
> > Some additional info (GENERIC-FAST is GENERIC without INVARIANTS/WITNESS):
> > -----
> > % uname -a
> > FreeBSD testbox.bsam.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Thu Feb 21 16:54:25 MSK 2008     root@testbox.bsam.ru:/usr/obj/usr/src/sys/GENERIC-FAST  amd64
> > -----
> >
> >
> > Any comments? Thanks!


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96658558>