Forum Discussion
Matthew_Gamble_
Nimbostratus
Mar 12, 2009TFTP Server?
Is it possible to write a simple TFTP server as an iRule to return static content? I see some examples for load balancing TFTP requests, but not for actually acting as a TFTP server. I have a very s...
James_Quinby_46
Mar 16, 2009Historic F5 Account
Also - the file you drop into file.class has to follow the same format as in the iRule for returning HTML and graphics from an iRule:
http://devcentral.f5.com/wiki/default.aspx/iRules/LTMMaintenancePage.html
Pay particular attention to the treatment of text within the class file. No newlines are allowed, the block must be quoted, and there must be a trailing comma.
The warning about memory is also useful - the file will be read into (and served from) memory, so be wary of using this method to transfer giant files. Not that anyone would do that with TFTP, but you never know.
If you're using this iRule to serve binary data, there may need to be additional tweaks. You might have uuencode it first, then add the b64decode statement (see the above page and the lines for sending the PNG file).
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
