TFTP Server Ubuntu 16.04




1. Install TFTP and TFTP server:

$ sudo apt update; sudo apt install tftp-hpa tftpd-hpa

2. Configure TFTP server:

TFTP Server default configuration:

root@ConfigNotes:~# cat /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure"

Change the /var/lib/tftpboot base directory to something harder to guest for security. Change the owner of the base directory:

$ sudo chown tftp:tftp /var/lib/tftpboot

3. Firewall rules:
Allow access to port 69/udp

$ sudo ufw allow tftp

4. Restart tftpd-hpa:

$ sudo /etc/init.d/tftpd-hpa restart

Published by

Ferdy Mañago

Portland, Oregon