From owner-freebsd-current@FreeBSD.ORG Fri Feb 22 14:58:34 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71E2016A402 for ; Fri, 22 Feb 2008 14:58:34 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 3A13013C4F0 for ; Fri, 22 Feb 2008 14:58:34 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1JSZAf-0006J3-6e for freebsd-current@FreeBSD.org; Fri, 22 Feb 2008 17:46:41 +0300 To: freebsd-current@FreeBSD.org From: Boris Samorodov Date: Fri, 22 Feb 2008 17:44:55 +0300 Message-ID: <62733928@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: default /etc/hosts and ftp X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 14:58:34 -0000 Hello List! 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 ----- 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