OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
NEW: net/tftpd-cgi-0.1.4

From: Don Jackson (don.jacksongmail.com)
Date: Sun Feb 01 2009 - 09:54:17 CST


I have motivated the development of a new version of the OpenBSD tftpd
which supports a CGI interface. This is a useful tool for
dynamically returning content to tftp clients . Two interesting use
cases:
        1) When pxebooting the OpenBSD installer, pxeboot requests the file ./
etc/boot.conf. Large sites with lots of different machines of
              different architectures and running different OpenBSD
releases may want to return a custom boot.conf file unique to that
machine.
        2) Some network appliances (eg VoIP telephones) attempt to tftpd a
configuration file on boot, often the config file name contains the
              MAC address of the device. One could write a tftpd-cgi
script that dynamically generates and returns the phone configuration
              from a database.

We used OpenBSD's tftpd as the basis/foundation for the project, and
added the code to support the cgi feature.

The resulting application is currently hosted on SourceForge:

        https://sourceforge.net/projects/tftpd-cgi/

And we are providing an OpenBSD port file(below) that makes it easy to
build and install.

cat ./pkg/DESCR
tftpd-cgi is a modified version of tftpd(8) that allows for dynamic
content via
a CGI script.