Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2005 12:54:44 -0700
From:      Aaron Glenn <aaron.glenn@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: tftpd does not respond to connections
Message-ID:  <18f601940509111254246fde9c@mail.gmail.com>
In-Reply-To: <18f6019405091022017b43a199@mail.gmail.com>
References:  <18f6019405091022017b43a199@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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