TFTP server support in ProVide #
ProVide includes a TFTP server in every edition. TFTP itself is deliberately minimal: it reads and writes files over UDP with no authentication, no encryption and no directory listing. ProVide adds the control the protocol lacks by matching each request to a TFTP account using the client’s source IP address and netmask, so every network segment sees only its own files. ProVide also negotiates larger block sizes and wraps the block counter, so transfers are not stuck at the usual 32 MiB ceiling.
What TFTP does, and what it leaves out #
TFTP (Trivial File Transfer Protocol, RFC 1350) does two things: read a file and write a file. There is no directory listing, no rename, no delete, no authentication and no encryption. Transfers run in lockstep, 512 bytes at a time, though the client can negotiate a larger block size (RFC 2348). TFTP handles its own retransmission on timeout, and a client needs nothing beyond UDP. That is why one fits inside a bootloader.
Two TFTP behaviors that catch people out #
The first is the port. The server answers from an ephemeral port, not from port 69. A firewall rule that permits only port 69 will pass the initial request and then drop the transfer.
The second is the block counter, which is 16 bits. At the default 512 bytes per block, 65,535 blocks cap a transfer at about 32 MiB (roughly 33.5 MB). Implementations differ past that point: some wrap the counter, others fail. Modern firmware images often exceed that ceiling, so the difference matters.
What TFTP is used for #
Those constraints suit the places that use TFTP. Network booting is the standard case: DHCP points the client at a TFTP server, and that server delivers the bootloader and kernel before any operating system exists. Switches and routers fetch firmware and push startup configurations. Handsets, thin clients and embedded devices pull provisioning files. In every case, a device with almost no resources needs one file from an address you control.
How to run TFTP safely #
Because the protocol holds nothing to govern, you govern access around it. Keep TFTP on a segmented management network. Never expose it to the internet or to an untrusted client VLAN. Where the payload is sensitive and the client can handle it, use SFTP or HTTPS instead.
How ProVide extends TFTP with per-subnet accounts #
TFTP carries no identity, so ProVide uses the one attribute every request does carry: its source address. You define multiple TFTP accounts and match each one to a source IP and netmask. ProVide then answers each request from the account that owns the requesting subnet.
No single directory serves every device. Each account holds its own root in the virtual filesystem, so a device sees only the files it needs. One segment gets boot images, another switch firmware, a third handset provisioning files.
An account can also direct writes to a separate destination. When a device saves a startup configuration or a diagnostic dump, that file lands in the write destination, clear of the files the account serves

You can also set an account read-only, so it serves files and refuses every write. Choose this wherever a segment only needs to fetch images. A spoofed source address can still reach a read-only account, but it cannot write anything. Accounts can be managed individually or in groups.
Can TFTP transfer files larger than 32 MiB? #
Yes, when both ends support block number rollover. The 16-bit block counter stops a strict implementation at 65,535 blocks, which is about 32 MiB at the default block size. ProVide wraps the counter past 65,535 in both directions, so that ceiling does not apply at the server and large firmware images transfer without a workaround. Test the device before you rely on this above 32 MiB, since the client has to understand rollover too.
ProVide also implements RFC 2348 blksize negotiation across the full defined range of 8 to 65,464 bytes. At the maximum block size, a single 65,535 block cycle already carries about 4 GB (3.996 GiB), and rollover allows the cycles after that. ProVide supports RFC 2349 tsize as well, parsing the transfer size as an Int64 and returning the stream size for downloads, so no fixed 32 MiB ceiling applies to the reported size either.
Which ProVide license includes TFTP? #
TFTP is available in every ProVide edition: Mini, Medi, Maxi and Mega. You do not need to upgrade to use it. The higher tiers add capability elsewhere, such as the Events and messages module and the Share and Collaborate module, both available from Maxi.