Testing a TFTP server using Cenots 7
First
su - yum -y install tftp
If you are running iptables either:
iptables -I INPUT -s ip.address.tftp.server -p udp -m udp --dport 2000:2020 -j ACCEPT
0r
systemctl stop iptables
If you are running firewalld
Execute the command to permit inbound udp traffic on ports 2000 to 2020
or
systemctl stop firewalld
Now, find the name of a file on your tftp server – any file. I have one I created named DoNotDelete-TestFile just for testing. Then execute the following command:
tftp -4 ip.address.tftp.server -R 2000:2020 -c get DoNotDelete-TestFile
If you now have the file on the current directory – everything is working. If you dont have the file you need to start troubleshooting.
Note – if you are going through a router or firewall, see if you can connect your computer on the same network with the tftp server. If it works then, check the settings of the firewall or router. Many times the default configuration will block tftp traffic