Install TFTP Server on Centos 6
Recently I had to troubleshoot a TFTP server that was part of a vSphere AutoDeploy environment. In the attempt to reproduce the issue in my lab, I deployed and configured a TFTP Server running on Centos 6. Here is what I did.
Step 1 - Update the server:
Step 2 - Install the following packages
[Optional] If the server is not connected to internet, mount the iso DVD and install from local source:
And install the packages from the local repository (CDROM):
Step 3 - TFTP in CentOS 6.x runs under the xinetd Super Daemon. The configuration file is in /etc/xinetd.d/tftp
Figure 1: tftp settings under xinetd
Change
disable = yes
todisable = no
Step 4 - Start xinetd service:
Check if the server is waiting for connections on port udp 69:
Figure 2: netstat -tulpn
Don't forget to check the firewall:
Figure 3: iptables rules
If needed, add a rule to allow traffic on udp port 69:
Figure 4: iptables udp 69 allowed
Logs are written in /var/log/messages
.
Use tcpdump
to capture incoming traffic on port 69:
Enjoy!