15
Feb

Guide on TFTP Server Setup in Fedora

This guide will help you understand the very basics of setting up a TFTP server.  This was written using Fedora 12 and tested with SELinux disabled. I have not yet confirmed if SELinux needs to be disabled, but I have confirmed that the firewall needs to be configured to allow port 69 (TFTP port).  Let’s get to it…

1.) Install the tftp-server package

yum install -y tftp-server

2.) Enable TFTP by making the following change to the /etc/xinetd.d/tftp file

Find disable = yes, make it no

3.) Turn everything on and start the xinetd service

chkconfig tftp on
/sbin/chkconfig xinetd on
/sbin/service xinetd start

4.) Poke a hole in the firewall to allow TFTP access
CLI: Insert the following line before the “COMMIT” line of /etc/sysconfig/iptables and then restart the service with ‘service iptables restart’:

-A INPUT -m state --state NEW -m udp -p udp --dport 69 -j ACCEPT

GUI: System -> Administration -> Firewall, put a checkmark on TFTP, and finally click apply.

Additional Information:
The TFTP server root directory is set to /var/lib/tftpboot/ by default but can be changed in the /etc/xinetd.d/tftp file.

Proper permissions to allow the TFTP daemon to update the files located in the TFTP server root directory are 666:

chmod 666 /var/lib/tftpboot/bootpImage

Sources:
http://llbb.wordpress.com/2007/06/14/installing-tftp-on-fedora/
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch16_:_Telnet,_TFTP,_and_xinetd

Feel free to donate if this post prevented any headaches! Another way to show your appreciation is to take a gander at these relative ads that you may be interested in:


There's 3 Comments So Far

Who Linked To This Post?

  1. Quick Start: Setup VSFTPD FTP Server in Fedora | The Linux Daily
  2. Notes TFTP – Fedora | NetCom Wordpress
  3. Jarson's blog » Guide on TFTP Server Setup in Fedora

Share your thoughts, leave a comment!