Configure tftp server

Anything relates to software

Configure tftp server

Postby admin » Fri Feb 25, 2011 6:22 pm

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
User avatar
admin
Site Admin
 
Posts: 938
Joined: Tue Jun 14, 2005 3:41 pm

Return to Software & Techniques

Who is online

Users browsing this forum: No registered users and 7 guests

cron