English · Deutsch
© 2026 R. Trunk · licensed under MIT or Apache-2.0, at your option
A portable successor to tftpd64: a single executable for Windows and Linux,
with a GUI for ad-hoc jobs and a headless mode for automation.
Project page: https://raytrunk.github.io/tftp-ng/
The executable contains TFTP, HTTP, Syslog and DHCP/ProxyDHCP servers, plus templates, ISO mounting, diagnostics and safeguards:
| Area | Features |
|---|---|
| TFTP | RFC 1350, option negotiation RFC 2347/2348/2349 (blksize, tsize, timeout), RFC 7440 windowsize, read-only by default, upload jail, path traversal protection, netascii |
| HTTP | GET/HEAD with Range, directory listings, UEFI HTTP boot, optional PUT/POST upload into the jail |
| Templates | Render missing device files (SEP<MAC>.cnf.xml, <MAC>.cfg …) from templates with placeholders |
| ISO mount | Serve .iso images (ISO9660, Joliet, Rock Ridge, UDF) under /iso/<name>/ via TFTP and HTTP without extracting them, the whole image as /iso/<name>.iso; as long as there is no boot.ipxe of your own, tftp-NG generates an iPXE boot menu for Debian Live, Ubuntu, Arch, Fedora/RHEL and Windows ISOs (see Boot menu) |
| Syslog | RFC 3164 & 5424, filter by severity/source/full text, export, capture to file |
| DHCP / ProxyDHCP | Pool, option 66/67, architecture detection (option 93), iPXE chainload switch (option 77), UEFI HTTP boot (option 60 HTTPClient), PXE port 4011 |
| Diagnostics | Rogue DHCP scan showing MAC and vendor of the foreign server, port conflicts, TFTP loopback test, firewall hints |
| Safeguards | Auto-shutdown timer, IP/CIDR whitelist, existing uploads are never overwritten, full DHCP runs as ProxyDHCP for the session when a foreign DHCP server answers; if that cannot be checked, DHCP does not start at all (rogue_guard) |
![]() |
![]() |
| TFTP & HTTP: ISO mount, templates, transfers | DHCP / PXE: boot file per architecture, PXE clients |
![]() |
![]() |
| Syslog with severity filter | Built-in help (F1) |
Ready-made builds for Windows x64, Linux x64 (with GUI) and Linux x64 headless (musl, static)
are available under Releases, each with SHA256SUMS.txt.
The Windows executable is not signed, so SmartScreen asks for confirmation on first start.
For Windows there are two variants:
- Portable (
tftp-ng-windows-x64.zip): unpack and start.tftp-ng.tomllives next to the executable, so program, configuration and root can travel together on a USB stick. - Installer (
tftp-ng-windows-x64-setup.exe): installs for all users intoC:\Program Files\tftp-NGwith a Start menu entry and, optionally, an inbound rule in the Windows Firewall (needs administrator rights; uninstalling removes the rule). The configuration is then kept per user in%APPDATA%\tftp-NG\tftp-ng.toml. "Install for me only" works without administrator rights, but without the firewall rule.
With Scoop (portable version, updates via scoop update):
scoop bucket add tftp-ng https://github.com/RayTrunk/tftp-ng
scoop install tftp-ng/tftp-ngcargo build --release # Windows: target\release\tftp-ng.exe (static CRT, with icon)
cargo build --release --target x86_64-unknown-linux-gnu # Linux with GUI
cargo build --release --no-default-features --target x86_64-unknown-linux-musl # Linux headless, fully staticCI builds and tests every push on Windows and Linux (all tests, Clippy, smoke test of the binary) and builds all three targets. Not yet tried on Linux: the GUI, binding ports 67/69 and PXE on a real network. On Linux the GUI loads the system's X11 or Wayland and OpenGL libraries at runtime.
tftp-ng # GUI
tftp-ng --headless # services without GUI, until Ctrl+C / auto-shutdown
# profile, interface, root directory and auto-shutdown after 60 minutes for this session
# (on Linux ports 67/69 need root or setcap, see "Operation"):
tftp-ng --headless -p pxe-install -i 192.168.10.1 -r /srv/tftp --auto-shutdown 60
tftp-ng --probe # self-test; exit code 0 = OK, 1 = warnings, 2 = errors
tftp-ng --list-profiles # list profiles (creates tftp-ng.toml if missing)
tftp-ng --list-interfaces # the system's IPv4 interfaces
tftp-ng --download-ipxe # missing iPXE boot files and wimboot into the root (ipxe.org/GitHub)
tftp-ng --lang de # language for this session: auto, de or enLanguage: UI, messages, logs and CLI help are available in English and German. The default is
language = "auto" in tftp-ng.toml: German if the system uses German, otherwise English.
You can also switch in the GUI ("Settings" tab) or with --lang.
Settings tab: theme, zoom (75–200 %) and language, the path of the configuration file, and "About" with author, license and links to the license texts. Besides the default "tftp-NG" theme (neutral graphite) there are the themes of Quillpad: Light, Dark, Solarized light/dark, Nord, Monokai, Sepia, High contrast and Windows 98 (colors only, without 3D edges). A test checks that every theme keeps text readable (WCAG contrast).
Help tab (F1): the user guide in the selected language, split into chapters and searchable. The text
lives in docs/help.en.md and docs/help.de.md and is embedded in the
executable, so it works offline too.
On first start tftp-ng.toml is created next to the executable with the profiles
default, pxe-install, voip-provisioning, router-recovery and syslog-collector. Relative paths in the
configuration refer to that folder, so executable, configuration and root directory can live together
on a USB stick. A relative -r, however, refers to the current working directory.
CLI values (-p, -i, -r, --auto-shutdown, --lang) apply to the session only: "Save" in the GUI
does not write them to the file unless you change the field yourself.
The excerpt shows the pxe-install profile with TFTP, HTTP, ProxyDHCP and boot files per client architecture:
language = "auto" # auto, de or en
active_profile = "pxe-install"
[ui]
theme = "tftp-ng" # tftp-ng, light, dark, solarized-light, solarized-dark, nord,
# monokai, sepia, high-contrast, win98
zoom = 1.0
[profiles.pxe-install]
interface = "192.168.10.1" # 0.0.0.0 = all interfaces
root_dir = "tftp-root"
upload_dir = "uploads" # write jail, always below root_dir
auto_shutdown_minutes = 60
iso_mounts = ["isos/ubuntu-24.04.iso"] # → /iso/ubuntu-24.04/...
[profiles.pxe-install.tftp]
allow_write = false
max_windowsize = 64
[profiles.pxe-install.http]
enabled = true
port = 8080
boot_menu = true # no boot.ipxe: generate a menu for the mounted ISOs
windows_share = '' # e.g. '\\server\win11': Windows setup installs from this SMB share
[profiles.pxe-install.dhcp]
enabled = true
mode = "proxy" # or "full" (own address pool – isolated networks only!)
rogue_guard = true # "full" only: if a foreign DHCP server answers at start, DHCP runs
# as ProxyDHCP (no address assignment); if the check fails,
# DHCP does not start
[profiles.pxe-install.dhcp.boot]
bios = "undionly.kpxe" # option 93 = 0x0000
uefi_x64 = "ipxe.efi" # 0x0007 / 0x0009
uefi_arm64 = "bootaa64.efi" # 0x000B
ipxe_script = "boot.ipxe" # when iPXE is already asking (option 77)
fallback = "undionly.kpxe"
[profiles.pxe-install.security]
allowed_clients = ["192.168.10.0/24"]Unknown keys are rejected (typo protection); missing values get defaults.
These placeholders are available in templates:
{{CLIENT_IP}}, {{CLIENT_MAC}} (aa:bb:…), {{CLIENT_MAC_RAW}} (aabb…), {{CLIENT_MAC_UPPER}} (AABB…),
{{SERVER_IP}}, {{FILENAME}}, {{TIMESTAMP}} (RFC 3339, local time), {{DATE}} (YYYY-MM-DD). The MAC comes from the
DHCP lease table or is read from the file name.
If the iPXE script (dhcp.boot.ipxe_script, usually boot.ipxe) is missing from the root directory, tftp-NG
generates a menu from the mounted ISOs. Kernel and initrd come from the ISO via HTTP; the system then fetches its
root file system itself. Tested in QEMU with the ISOs named here (BIOS, iPXE):
| System | Detected by | How the root file system is loaded | Tested with |
|---|---|---|---|
| Debian Live (Kali, Clonezilla …) | live/vmlinuz*, live/*.squashfs |
fetch= loads the squashfs |
Butterbian (real hardware, UEFI) |
| Ubuntu, Mint, Zorin (casper) | casper/vmlinuz* |
url= loads the whole ISO into RAM: the client needs about twice the ISO size in RAM |
Rescuezilla 2.6.2 (Ubuntu 26.04) with 6 GB |
| Arch Linux and archiso derivatives | <dir>/boot/x86_64/vmlinuz* plus <dir>/x86_64/airootfs.* |
archiso_http_srv= |
Arch 2026.08, SystemRescue 13.01 |
| Fedora, RHEL, Alma, Rocky | images/pxeboot/vmlinuz or boot/x86_64/loader/linux |
Live: root=live: with LiveOS/squashfs.img; installer DVD: inst.repo= |
Fedora 44 COSMIC Live |
| Windows, WinPE | sources/boot.wim, boot/bcd, boot/boot.sdi |
wimboot (wimboot in the root: "Download" in the DHCP / PXE tab or --download-ipxe) |
Windows 11 25H2 (UEFI, up to install.bat) |
Windows setup needs an SMB share. The boot.wim of an installation ISO only starts Windows PE with Setup;
Setup then looks for sources/install.wim, which TFTP and HTTP cannot provide. Copy the contents of the ISO to a
share and enter it as windows_share (GUI: "Services" tab, HTTP). tftp-NG then injects a winpeshl.ini and an
install.bat through wimboot; they start the network (wpeinit), connect the share with net use (asking for
user name and password if needed) and run setup.exe from it, following ipxe.org/howto/winpe.
Without a share the entry still boots Windows PE, which is enough for WinPE-based rescue ISOs.
wimboot needs a current iPXE. The old iPXE ROM built into QEMU/Proxmox VMs announces itself as iPXE and therefore gets
the menu directly; wimboot then stops with "Bad CPIO magic" under BIOS. Real PXE clients first load undionly.kpxe
or ipxe.efi from tftp-NG and are not affected.
Not detected: Manjaro/miso, Artix, Alpine, Debian installer (netinst) and installers with their own layouts.
For those, write your own boot.ipxe.
- Ports < 1024 on Linux (69, 67, 514) need root or
sudo setcap 'cap_net_bind_service=+ep' ./tftp-ng; alternatively put Syslog on 1514. - Windows Firewall:
--probechecks whether an inbound rule exists and prints the matchingnetshcommand. - Several network cards: pick a specific interface for DHCP/ProxyDHCP, otherwise the server address (option 54/66) has to be guessed.
- Startup time: on the test system (AMD graphics driver) the window appears after about 175 ms.
tftp-NG itself needs ~1 ms to initialise and ~4 ms for the first frame; the rest is spent by the
graphics driver creating the window and OpenGL context. With
-vthe measurement points are logged.
cargo test # unit and end-to-end tests (TFTP incl. packet loss, HTTP, ISO, DHCP logic)
cargo clippy --all-targets -- -D warningsThe services live in src/servers/{tftp,http,syslog,dhcp}, path protection, ISO and templates in src/vfs,
start/stop and auto-shutdown in src/supervisor.rs, the self-test in src/diag.rs, the GUI (egui) in src/gui
and the translations (tr!/trf!, German and English side by side) in src/i18n.rs.
© 2026 R. Trunk. tftp-NG is licensed under either the MIT license or the
Apache License 2.0, at your option. The software is provided as is, without warranty
of any kind. tftp-ng --version and the "Settings" tab show the same information.
Included data: the vendor list comes from the IEEE registry (MA-L); the themes other than "tftp-NG"
come from Quillpad (R. Trunk). The libraries used (egui, tokio, axum, clap and others) are MIT or
Apache-2.0 licensed; their licenses apply to their code. Every release package contains
THIRD-PARTY-LICENSES.html with the license texts of all included libraries (generated with
cargo-about, configuration in about.toml).




