A simple TFTP server (mainly for lab use) that allows download and upload of files
1.9K
A simple TFTP server (mainly for lab use) that allows download and upload of files. Please remember that tftp is insecure and should only be used for brief, internal network applications such as in a pre-staging or in a lab environment. Do not deploy in prod environments.
Build the host machine as recommended is this document.
Also, connect eth0 to an Ethernet switch port that will supply an IP address via DHCP. (Note that Internet connectivity is required for the initial docker image pull or while you are building the image from scratch)
On a host machine enter this command:
docker run -d -i -t --restart always -p 69:69/udp -v /var/tftpboot:/var/tftpboot:rw --name tftpd sbcprobe/tftpd:latest
To build the image yourself, run the following on your Docker host:
git clone https://github.com/wifinigel/sbc_network_probe.git
cd tftpd
docker build -t sbcprobe/tftpd .
To run the built container use the following command:
# docker run -d -i -t --restart always -p 69:69/udp -v /var/tftpboot:/var/tftpboot:rw --name tftpd sbcprobe/tftpd:latest
Once the container is running, files may be uploaded and downloaded via the /var/tftpboot directory of the host machine (not the container).
Remember: tftp is insecure and should only be used in protected environments and for brief/trivial activities (e.g. lab work)
More info at the GitHub Repo : here
docker pull sbcprobe/tftpd:latest