Setting TFTP Server
Setting TFTP Server
For Ubuntu
Install the TFTP Server
sudo apt update
sudo apt install tftpd-hpa
Configure the TFTP Server
sudo nano /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure"
Save and close the file.
Create and Set Permissions for the TFTP Root Directory
sudo mkdir /var/tftpboot
sudo chown tftp:tftp /var/tftpboot
sudo chmod -R 775 /var/tftpboot
Restart the TFTP Service
sudo systemctl restart tftpd-hpa
Check the Status of the TFTP Service
sudo systemctl status tftpd-hpa
For any distro using the docker
Create and Set Permissions for the TFTP Root Directory if needed
sudo mkdir /var/tftpboot
sudo chmod -R 775 /var/tftpboot
Run the tftp docker container:
docker run -p 0.0.0.0:69:69/udp -v /var/tftpboot:/var/tftpboot -i -t pghalliday/tftp
For Windows
Download and install tftpd64
Select the network and directory with the files you need to transfer
, multiple selections available, Use left or right arrow keys to navigate selected items
SolidRun Ltd.