Linux – TFTP PUT Failing Across Hosts

linuxtftp

I have a TFTP server installed on a CentOS host.

/etc/xinetd.d/tftp:

service tftp
{
    disable = no
    socket_type             = dgram
    protocol                = udp
    wait                    = yes
    user                    = root
    server                  = /usr/sbin/in.tftpd
    server_args             = -c -s /var/lib/tftpboot
    per_source              = 11
    cps                     = 100 2
    flags                   = IPv4
}

If I try to PUT a file from a remote host to the host running the TFTP server, I get Transfer Timed Out – however, it does create the file in /var/lib/tftpboot but the file is empty. If I tftp from the tftp server to itself (localhost) and PUT a file, it works fine. I have verified that SELinux is disabled and IPTables are turned off. I can connect from the remote hosts with no issue – just seems to be the PUT I have issue with:

[root@SVR01 TEST]# tftp 10.100.2.15
tftp> status
Connected to 10.100.2.15.
Mode: netascii Verbose: off Tracing: off Literal: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp> 

Best Answer

Run "chmod 666" on the empty file then try your tftp again.