Can't stop questioning!

Install TFTP Server on Ubuntu 14.04

Tuyen D. Le August 16, 2023 [Server] #TFTP

Install the TFTP Server package

sudo apt-get install xinetd tftpd tftp -y

After successfully installing, in.tftpd file should be found in /usr/sbin/ directory.

ls -la /usr/sbin/ | grep tftp
-rwxr-xr-x  1 root root   14284 Dec 16  2010 in.tftpd

TFTPD configurations

The folder contains the TFTP files. The TFTP server will look up the requested file from a client in this directory.

sudo mkdir /tftpboot
sudo chmod 777 /tftpboot/
  1. Changing the configuration in /etc/xinetd.d/tftpd directory
sudo vi /etc/xinetd.d/tftpd

# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.

service tftp
{
	socket_type = dgram
	protocol = udp
	wait = yes
	user = root
	server = /usr/sbin/in.tftpd
	server_args = -c -v -s /tftpboot
	disable = no
	per_source = 11
	cps = 100 2
	flags = IPv4
}
  1. On Ubuntu 14.04, tftp needs to be disabled from the inetd.conf file
# comment out this line: tftp           dgram   udp     wait    nobody  /usr/sbin/tcpd  /usr/sbin/in.tftpd /srv/tftp
sudo vi  /etc/inetd.conf
  1. Restart xinetd service
sudo service xinetd restart
  1. Verify configurations. Port 69 should be opened for incoming requests
sudo netstat -taplun | grep 69
udp        0      0 0.0.0.0:45369           0.0.0.0:*                           764/avahi-daemon: r
udp        0      0 0.0.0.0:69              0.0.0.0:*                           3764/xinetd