Monday, November 3, 2014

How to install tftp server on Centos

1- install tftp server using package manager
root@tftp-server# yum install tftp-server

2- edit  /etc/xinetd.d/tftp to the following content
service tftp
{
    socket_type        = dgram
    protocol        = udp
    wait            = yes
    user            = root
    server            = /usr/sbin/in.tftpd
    server_args      = -s /var/lib/tftpboot
    disable            = no
    per_source        = 11
    cps            = 100 2
    flags            = IPv4
}


---Note---
- the directory for upload/download is /usr/sbin/in.tftpd
- Normally tftp does not support authentication
- To enable tftp to automatically create file when upload non-existing file change the server_args to : server_args      = -c -s /var/lib/tftpboot

3- example using tftp windows client to upload/download file 
tftp 192.168.202.1 PUT testupload.txt
tftp 192.168.202.1 GET testdownload.txt

No comments:

Post a Comment