Page 1 of 1

Configure tftp server

PostPosted: Fri Feb 25, 2011 6:22 pm
by admin
The way i do the tftp server is, i set this service as a part of xinetd service. The file is /etc/xinetd.d/tftp. If you don't have it, create one in that directory with the following

service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}

Save it. Your tftp server exe's should be in /usr/sbin/in.tftpd. Don't use the inetd service. The linux installation might give several option. Choose xinetd. It works always.

restart xinetd
/etc/init.d/xinetd restart

NOTE:
if you are runing iptables make sure you have udp port 69 open (/etc/sysconfig/iptables)

Test your new tftp server
1. create a file in your /tftpboot directory
2. from another system try geting the newly created file with tftp
# tftp IP_address_of_tftp_server

i.e.
# tftp 192.168.100.254
tftp> get testing.txt
tftp> quit

# ls
- and you should see the file in your local computer