Red Hat/CentOS TFTP Server Setup





There are many options for setting up a TFTP server. It can be Linux, Windows, or even ran right off of the vCenter Server Appliance (VCSA). Here are the steps I used to setup TFTP on CentOS:
-
1yum update
-
1yum install emacs tftp-server -y
-
1chkconfig --level 345 tftp on
-
1chkconfig --level 345 xinetd on
-
1chmod 777 /var/lib/tftpboot/
-
1emacs /etc/xinetd.d/tftp
- Add the -c to this line:
1server_args = -c -s /var/lib/tftpboot
- Add the -c to this line:
-
1service xinetd start
- Check to see if the service is up:
-
1netstat -ntulp
- Make sure you see the :69 to verify that it is running?
-
- Modify iptables to allow udp traffic or turn it off
- Edit: /etc/sysconfig/iptables
1-A INPUT -m state --state NEW -m udp -p udp --dport 69 -j ACCEPT - Or turn iptables off completely (not the most secure option)
1service iptables stop
- Edit: /etc/sysconfig/iptables




