Using the Drop Down Navigation Menu on the top of the page, below the NAS4Free logo, click on “SERVICES”, then select “TFTP”. On this page you can enable or disable the TFTP service and create, delete and manage the TFTP server.
Trivial File Transfer Protocol (TFTP) is a simple protocol to transfer files. It has been implemented on top of the User Datagram Protocol (UDP) using port number 69. TFTP is designed to be small and easy to implement, therefore, lacks most of the features of a regular FTP. TFTP only reads and writes files (or mail) from/to a remote server. It cannot list directories, and currently has no provisions for user authentication.
In TFTP, any transfer begins with a request to read or write a file, which also serves to request a connection. If the server grants the request, the connection is opened and the file is sent in fixed length blocks of 512 bytes. Each data packet contains one block of data, and must be acknowledged by an acknowledgment packet before the next packet can be sent.
A data packet of less than 512 bytes signals termination of a transfer. If a packet gets lost in the network, the intended recipient will timeout and may retransmit his last packet (which may be data or an acknowledgment), thus causing the sender of the lost packet to retransmit that lost packet.
The sender has to keep just one packet on hand for retransmission, since the lock step acknowledgment guarantees that all older packets have been received. Notice that both machines involved in a transfer are considered senders and receivers. One sends data and receives acknowledgments, the other sends acknowledgments and receives data. Three modes of transfer are currently supported by TFTP: netascii, that it is 8 bit ascii; octet (This replaces the “binary” mode of previous versions of this document.) raw 8 bit bytes; mail, netascii characters sent to a user rather than a file. Additional modes can be defined by pairs of cooperating hosts.
Directory: This is the path to the directory ( folder ) that is to be shared using TFTP. The format of
this is /mnt/storagename/folder where storagename is the mount point name. Click on to the right of the text box. This will bring up a simple file system browser. Click the desired mount point and click “OK”. The mount point will be added to the Path.
Allow New Files: If enabled, New files are allowed to be created. (Default is only already existing files can be uploaded.)
Advanced settings
Port: The port to listen to. Default port is defined in /etc/services (Usually 69).
Username: From the pulldown menu you can specify the user or username which the service will run as.
Umask: Sets the umask for newly created files to the specified value. (Default = Zero)
Timeout: Default timeout setting. (Default is 1000000)
Max Block Size: Specifies the maximum block size. (From 512 to 65464)
Extra Options: Please consult the TFTPD Man page for switches that can optionally be used here.
The TFTP service should now be running, you should test to make sure that everything is working properly. Brief test procedures are in SUG Section 2.6.3-Testing & Connecting.