Version 5.4 |
|||||||||||||||||||||||||||||||||||
|
|
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 read or to store, and the transfer mode.
For a file read operation, the server computer replies with a UDP packet with a block of file data.
If the file is larger than one block, then the client computer sends an ACK (acknowledgment) packet,
and the server computer sends the next block of file data in response.
For a file write operation, the server computer replies with an ACK UDP packet, the client
computer sends the first file data block, the server computer replies with an ACK packet, and the client computer sends the next data block.
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 or write 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 interpreted as an Account name, and the string after that slash 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 reads or writes the specified files on behalf of the tftpuser in the Main Domain. This makes it
possible to retrieve files from any Account File Storage directory outside the private directories.
To allow TFTP clients to access private directories or to allow TFTP clients to store files,
modify the target directory File Access Rights, granting the tftpuser the Read and/or Write rights.
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.
For a file read operation, 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 when reading, use file1.dat) in the Default File Storage |
/file1.dat | 10.0.1.0 | 10.0.1.0/file1.dat (if absent when reading, use file1.dat) in the Default File Storage |
dirA/file1.dat | 10.0.1.0 | 10.0.1.0/dirA/file1.dat (if absent when reading, use 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 |