TFTP Serving

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Proven on:
Logo Debian.png
12 (bookworm)


Reference Material

CopyPasta

  • sudo apt install tftpd-hpa
  • sudo systemctl enable tftpd-hpa
  • sudo systemctl status tftpd-hpa.service
  • sudo vi /etc/default/tftpd-hpa
  1. /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure --create"
  • sudo chown -R tftp /srv/tftp

Notes & Thoughts

The TFTP_DIRECTORY entry in /etc/default/tftpd-hpa should be changed to reflect a dedicated space.

The TFTP_OPTIONS entry doesn't really need (and shouldn't have!) --create for normal usage. This is really only here to allow putting things in place from remote machines. Must come up with a better solution. (Maybe using FTP or NFS...)