WvTftp

WvTftp is the world's fastest TFTP server.
Download

WvTftp Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Mark Cote
  • Publisher web site:
  • https://alumnit.ca/wiki/?WvTftp

WvTftp Tags


WvTftp Description

WvTftp is the world's fastest TFTP server. WvTftp is the world's fastest TFTP server. No, really, it is. The project was originally developed for the NetIntegrator, but is also useful on its own, and so is available for free under the terms of the GNU LesserGeneralPublicLicense, or LGPL.Compiling and Installing WvTFTPdYou need to have a recent version of the WvStreams library and header filesinstalled on your system to use WvTFTPd. We recommend version 4.0 or higher.You can download WvStreams from http://open.nit.ca/wiki/index.php?page=WvStreamsYou also require the "pkg-config" program, unless you want to modify theMakefile and insert the appropriate paths.WvTFTPd installs itself into /sbin and the man page into/man, where is the same prefix to which WvStreams isinstalled (typically "/usr" or "/usr/local"). Again, edit the Makefile ifyou wish to change this. Eventually WvTFTPd might have a configure scriptto do this.To compile WvTFTPd, untar the package to somewhere like /usr/src and type"make". If there were no errors, type "make install". Root privileges are,of course, required to install the program.Configuring WvTFTPdThe configuration file for WvTFTPd is /etc/wvtftpd.conf. WvTFTPd will run fine without any special configuration, but in order to take advantage of some of its special features, you'll need to create a configuration file.The first section of the configuration file might look like this (defaultvalues are shown):Base dir = /tftpboot/Port = 69Min Timeout = 100Max Timeout = 5000Max Timeout Count = 80Total Timeout Seconds = 0Prefetch = 3Readonly = 1Default File =Strip Prefix = Overwrite existing file = 0Client directory = 0Create client directory = 0"Base dir" is the default directory. If a client requests a file without specifying the full path, the base dir is prepended."Port" specifies the port WvTFTP should use, if you don't want to use thestandard, 69, for some reason."Min Timeout", "Max Timeout", and "Max Timeout Count" all specify values forWvTFTP's exponential timeout. This multiplier starts at 1. WvTFTP willretransmit a packet if it does not get an answer in the average RTT thus far times the square of the current multiplier or the "Min Timeout" value,whichever is greater. The multipler is increased by one for each timeout.You can also specify a "Max Timeout" as the maximum waiting time untilretransmission.You can also specify a timeout in seconds which will always specify the timeto retransmission; for example, you can configure WvTFTP to time out every. This overrides exponential backoff. If the number of timeouts reaches "Max Timeout Count", the transfer is aborted.If "Total Timeout Seconds" is specified and not zero, the transfer will beaborted if the specified number of seconds elapse from the time of thereception of the last packet, regardless of the number of retries."Prefetch" specifies the amount of negative latency, that is, how manypackets are sent out at a time."Readonly" determines if TFTP writes are allowed. The default is 1 (writesnot allowed)."Default File" is the file sent to a client if the requested file is unavailable.The path given as "Strip Prefix" is automatically stripped from thebeginning of any client requests. This is done before adding "base dir"."Overwrite existing file" specifies if existing files should be overwrittenwhen the client uploads a file with the same name. If the file exists andthis is set to 0 then the upload will fail. The default is to not overwriteexisting files (0)."Client directory" specifies if the client IP address should be appended tothe "Base dir" when a file is uploaded. This will cause clients to uploadinto their own directory. If the client directory does not exist and the"Create client directory" directive is set to false (0) then the upload willfail. The default is to not append the client IP address to the "Base dir"when a file is uploaded (0)."Create client directory" will create the client's directory when the clientuploads a file (assuming "Client Directory" is set to 1; otherwise, thisoption does nothing). The directory is a subdirectory of "Base dir" and isthe IP address of the client (e.g /tftpboot/127.0.0.1). The default is tonot create the client directory (0).The second section is . It contains a list of filenameoverrides. You can specify an override for a particular IP address and alsodefault overrides for IPs not explicitly listed. Per-client filenameoverrides look like "IPAddress/filename = clientnewfilename". Defaultoverrides look like "default/filename = newfilename".For example:default/image = image2_4.img192.168.0.43/image = image2_5b.imgIn this instance, if a user at 192.168.0.43 attempted to download the file "image", the file "image2_5b.img" would actually be sent. Users from other machines will get the file "image2_4.img" when they request "image".You can also specify one-time aliases in the section. Theformat is identical to ; you may have global or per-clientone-time aliases. When a client asks for a file, WvTftp checks the section first. If a match is made, this alias is used,and when the download finishes the alias is removed from the section(regardless of whether the alias is global or client-specific). Subsequentmatching requests will then be checked against as normal. Note that the entry is only removed after a successfuldownload; the entry will be left alone if a download fails.The last sections are and . holds a list of client IP addresses ("192.168.0.43= 1") that are known to the server. When a client attempts to connect, ifits address is not in , it is added to. This has no function inside of WvTFTP itself but mightbe useful in some situations (such as in our Net Integrators).Note that UniConf, the configuration system that WvTFTPd uses, may rearrangeyour config file such that all your settings, including and and such, will be under the section. Thus, your config mayend up looking like this:Port = 69...Aliases/default/image = image2_4.imgNew Clients/192.168.0.1 = 1This format and the above examples are completely interchangeable inUniConf, but UniConf prefers the latter and will rearrange variables thusly. The above examples use separate sections just for clarity. Requirements: · WvStreams library and header files What's New in This Release: · Updates for building with WvStreams 4.5.


WvTftp Related Software