Version 5.2 |
||||||||||||||||||||||||||||||||||
|
|
The Trivial File Transfer Protocol allows client computers to work with files stored on remote servers. A computer running a TFTP client application sends UDP request packets to the server computer. These packets contain the name of the file to retrieve and the transfer mode. In return, the Server computer sends a UDP packet with a block of file data. If the file is larger than one block, then the client computer sends an ACK (acknowledgement) packet, and the Server sends the next block of file data in response.
The CommuniGate Pro TFTP module supports relevant Internet standards (RFCs).
Use the WebAdmin Interface to configure the TFTP module. Open the Access pages in the Settings realm, and open the TFTP page:
The file name specified in the TFTP read request packet is interpreted as the name of a file in the Default Account File Storage.
If the specified file name starts with the slash (/) or tilda (~) symbol, the file name should contain at least one non-leading slash symbol. The string between the leading special symbol and that slash symbol is interpeted as an Account name, and the string after that slah symbol - as the name of the file to retrieve from the File Storage of the specified Account.
if the specified file name starts with the slash (/) symbol, but it does not contain any other slash symbols, the leading slash symbol is removed.
The TFTP module tries to retrieve the specified files on behalf of the tftpuser in the Main Domain.
By default, this Account does not exist, so the TFTP clients cannot retrieve anything from the private File Storage subdirectories.
To allow TFTP clients to access these subdirectories, create the tftpuser Account, and
grant it the Unlimited File Storage Access right.
The addressed Account must have the WebSite Service enabled to allow TFTP clients to retrieve files from its File Storage.
Examples:
TFTP filename parameter | Addressed file |
file1.dat | file1.dat in the Default File Storage |
/file1.dat | file1.dat in the Default File Storage |
dirA/file1.dat | file1.dat in the dirA subdirectory of the Default File Storage |
/john/file1.dat ~john/file1.dat | file1.dat in the Account john File Storage |
/john/dirB/file1.dat ~john/dirB/file1.dat | file1.dat in the dirB subdirectory of the Account john File Storage |
/john@domain1.dom/dirB/file1.dat ~john@domain1.dom/dirB/file1.dat | file1.dat in the dirB subdirectory of the Account john@domain1.dom File Storage |
If the Try IP-Address Directory option is enabled, and the specified file name does not start with the slash or tilda symbol,
the module appends the text presentation of the client IP address in front of the file name. If a file with this name is not found,
the inserted prefix is removed, and the module re-tries to retrieve a file.
This feature allows you to create subdirectories inside the Default Storage directory, named with certain client IP addresses.
Examples:
TFTP filename parameter | Client IP address | Addressed file |
file1.dat | 10.0.1.0 | 10.0.1.0/file1.dat (if absent, file1.dat) in the Default File Storage |
/file1.dat | 10.0.1.0 | 10.0.1.0/file1.dat (if absent, file1.dat) in the Default File Storage |
dirA/file1.dat | 10.0.1.0 | 10.0.1.0/dirA/file1.dat (if absent, dirA/file1.dat) in the Default File Storage |
/john/file1.dat ~john/file1.dat | 10.0.1.0 | file1.dat in the Account john File Storage |