How do I correctly configure TFTP?

Hi again!

Now that I'm talking to my serial device, I need to provide it with a TFTP server (on an Ethernet) from which it can install its firmware. OS X, being UNIX, should be perfectly capable of running such a server. So, I looked around, found the xinetd and xinetd.conf man pages, set 'enable = yes' in /private/etc/xinetd.d/tftp, verified that /usr/libexec/tftpd exists, put the files to be served in /private/tftpboot, poked a hole in my firewall for port 69, and rebooted.

No joy. Using the Console utility to view the system.log, I do see xinetd starting tftpd in response to requests from my device's IP-address -- so it appears that the requests are getting through the firewall and are recognized by xinetd, and it is starting tftpd. However, the client on the device is claiming that the connection is timing out (in its cryptic way -- it is saying ' T'), and it is retrying every 5 seconds.

I can't see a way to get any more detailed information from tftpd about the problem. Has anyone successfully set up the stock OS X xinetd/tftpd ? Is there some step I'm obviously missing? Does anyone know how to get details of errors tftpd encounters?

Thanks!

Powerbook G4 1GHz

Posted on Mar 16, 2008 3:43 PM

Reply
15 replies

Mar 16, 2008 9:34 PM in response to doug pennington

Karl, The above post was from server to 3rd party and below is from one of my machines to server.
dougsmachine:~ dougpennington$ tftp 10.0.0.13 69
tftp> get bs.txt
Transfer timed out.

tftp> get /private/tftpboot/bs.txt
Transfer timed out.

tftp> status
Connected to 10.0.0.13.
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp> quit
And server log shows: START: tftp pid=762 from=10.0.0.14
Yeah, what is the deal on the time out, among other things? More Yahooing I guess. Doug

Mar 17, 2008 9:34 AM in response to doug pennington

And the mystery continues. You have to understand that I have 4 laptops so I went to a Panther one to fetch from Panther server(remember the other fetches were from Panther to Tiger). And no time out with a get from Panther to Panther and text is intact in fetched file.
Last login: Mon Mar 17 07:56:54 on ttyp3
let us begin
You have mail.
doug-pennington-s-Computer:~ pennington$ tftp 10.0.0.13 69
tftp> get bs.txt
Received 28 bytes in 0.0 seconds
tftp> quit
doug-pennington-s-Computer:~ pennington$

Mar 17, 2008 10:25 AM in response to Karl Zimmerman

Obviously my dump is showing 7 packets capt, 7 rec by filt, 0 pkts dropped by kernel. But we knew it was working. Just a cross check. On system pref pane, I did new, with port 69, tftp with check on. Now when I did this last night and this am(it wouldn't stay after sleep) I originally typed on the new(under firewall) tftpd because without the d it wouldn't let me ok it. So I did with d, ok'd it, and it now, and last night shows 2 entries of port 69(one w/tftpd & one w/tftp). I don't know why it took that way, but it does and works. And my xinetd is like your directions. My bs.txt in /private/tftpboot are 400(rrr) owned by me, and /private/tftpboot is root w/rwxr-xr-x. And(forget the structure of disable = no, for it still works and isn't worth the change).

service tftp
{
cps = 200 5
disable = no
socket_type = dgram
wait = yes
user = nobody
server = /usr/libexec/tftpd
server_args = /private/tftpboot
groups = yes
flags = REUSE
}

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I correctly configure TFTP?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.