Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.32 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.32 KB

just-a-tftp

Just a simple tftp server that runs as a windows service.

I put this server together to replace the default tftp server bundled with Windows Deployment Service. It is suitable for serving PXE boot files on windows or as a general purpose tftp server.

Those looking for a linux solution should use hpa-tftpd.

Based on:
github.com/kardianos/service
github.com/pin/tftp

Usage

Example:

justatftp.exe --dir ./ --ro=false --conns :69

Flags:

--dir Path to directory you want to serve. Recommended to use unix style absolute paths. Default ./
--ro When true, the tftp server runs in read only mode. Default false
--conns Connection string. Examples :69, 0.0.0.0:69, 192.168.1.1:69. Default: :69

Installing the service

justatftp.exe --dir ./ --ro=true --conns :69 install

Uninstalling the service

justatftp.exe --dir ./ --ro=true --conns :69 uninstall

Logging

just-a-tftp logs to the windows event log when run as a service.

A note about PXE booting

juat-a-tftp does not implement variable window sizing like the server bundled in Windows Deployment Services. This means that you will not be able to transfer large WIM or ISO images using justatftpd. You should use either pxelinux or iPXE to transfer large files over HTTP. Most modern NBPs support this feature.