May 27, 2024

Fedora 40 -- install and setup a TFTP server

Last month I did a full fresh install of Fedora 40. One thing I forgot to reinstall was a TFTP server.

Most people would not want or need this, but I use it for embedded system development and booting.

su
dnf install tftp-server -y
systemctl start tftp.service
systemctl enable tftp.service
This gets the service installed and running. The files it server are in /var/lib/tftpboot. I preserved this from before my reinstall. It is currently owned by root, but I could change ownership to "tom" to make my life easier, at the risk of sacrificing some security.

Firewall rules

##firewall-cmd --permanent --zone=FedoraWorkstation --add-service=tftp
firewall-cmd --add-service=tftp --permanent
firewall-cmd --reload
firewall-cmd --list-services
This seemed to do the job. Note the commented out line with the "--zone" options. I tried this first based on some other notes, but it did not seem to work. Someday I need to learn about these zones and how all this really works.
Have any comments? Questions? Drop me a line!

Adventures in Computing / tom@mmto.org