From owner-freebsd-questions@FreeBSD.ORG Sun Sep 11 19:54:46 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26C9416A41F for ; Sun, 11 Sep 2005 19:54:46 +0000 (GMT) (envelope-from aaron.glenn@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFEDC43D45 for ; Sun, 11 Sep 2005 19:54:45 +0000 (GMT) (envelope-from aaron.glenn@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so137083nzd for ; Sun, 11 Sep 2005 12:54:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hYGpjhlB9XBCAxrnMiOcGnG+PJEKaVsudFcr0C5sBWsKfCqIcykcjleYo1gSuh6595mQZsnW1aC1klqa0BuYJNOphAW7QSOVFIoRadiqyAq7YMr/BZeng+/TGBQlUVlJoyDCUPO/JpDdgCqnNePcXngCDfM+VwQhIdU5sIuUgYk= Received: by 10.36.10.2 with SMTP id 2mr2254299nzj; Sun, 11 Sep 2005 12:54:44 -0700 (PDT) Received: by 10.36.153.19 with HTTP; Sun, 11 Sep 2005 12:54:44 -0700 (PDT) Message-ID: <18f601940509111254246fde9c@mail.gmail.com> Date: Sun, 11 Sep 2005 12:54:44 -0700 From: Aaron Glenn To: freebsd-questions@freebsd.org In-Reply-To: <18f6019405091022017b43a199@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18f6019405091022017b43a199@mail.gmail.com> Subject: Re: tftpd does not respond to connections X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: aaron.glenn@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 19:54:46 -0000 di# uname -a FreeBSD di.fm 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Jul 19 10:34:46 GMT 2004 root@di.fm:/usr/src/sys/compile/di.fm i386 di# ps -axww | grep inetd di# netstat -a -p udp Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) udp4 0 0 di.syslog *.* udp4 0 0 *.syslog *.* udp6 0 0 *.syslog *.* di# cat /etc/inetd.conf | grep tftp tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot #tftp dgram udp6 wait root /usr/libexec/tftpd tftpd -s /tftpboot di# ll /tftpboot total 0 -rw-r--r-- 1 755 nobody 0 Sep 11 12:28 test di# ll / | grep tftpboot drwxrwxrwx 2 755 nobody 512 Sep 11 12:28 tftpboot di# inetd -wWdl & [1] 90216 di# ADD : tftp proto=3Dudp accept=3D0 max=3D1 user=3Droot group=3D(null)class=3Ddaemon builtin=3D0x0 server=3D/usr/libexec/tftpd policy=3D"" inetd: tftp/udp: ipsec initialization failed; in entrust inetd: tftp/udp: ipsec initialization failed; out entrust inetd: enabling tftp, fd 4 inetd: registered /usr/libexec/tftpd on 4 di# netstat -a -p udp Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) udp4 0 0 *.tftp *.* udp4 0 0 di.syslog *.* udp4 0 0 *.syslog *.* udp6 0 0 *.syslog *.* di# fstat -p 90216 USER CMD PID FD MOUNT INUM MODE SZ|DV R/W root inetd 90216 root / 2 drwxr-xr-x 512 r root inetd 90216 wd /var 2 drwxr-xr-x 512 r root inetd 90216 text /usr 645936 -r-xr-xr-x 36484 r root inetd 90216 0 / 628 crw--w---- ttyp0 rw root inetd 90216 1 / 628 crw--w---- ttyp0 rw root inetd 90216 2 / 628 crw--w---- ttyp0 rw root inetd 90216 3* pipe ddd7ae80 <-> ddd7af20 0 rw root inetd 90216 4* internet dgram udp dc240bc0 root inetd 90216 5* pipe ddd7af20 <-> ddd7ae80 0 rw di# telnet localhost 69 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host di# telnet 64.235.xxx.4 69 Trying 64.235.xxx.4... telnet: connect to address 64.235.xxx.4: Connection refused telnet: Unable to connect to remote host di# tftp localhost tftp> get (files) test Transfer timed out. tftp> quit di# tftp 64.235.xxx.4 tftp> get (files) test inetd: someone wants tftp inetd: disabling tftp, fd 4 inetd[90272]: warning: /etc/hosts.allow, line 23: can't verify hostname: getaddrinfo(something.is.not.right, AF_INET) failed inetd[90272]: connection from 64.235.xxx.4, service tftpd (udp) inetd: 90272 execl /usr/libexec/tftpd inetd: handling signal flag C inetd: 90272 reaped, status 0 inetd: enabling tftp, fd 4 di# ll test -rw-r--r-- 1 root wheel 0 Sep 11 12:44 test di# Can anyone tell me: - why tftp doesn't show as LISTEN in netstat? - why tftp did not respond on localhost? - why the tftp client only works? and only on the IP? - why telnetting to port 69 does not work at all? Regards, aaron.glenn