Skip to content

Commit fe00be3

Browse files
committed
Replace in.tftp with dnsmasq, to add support for single-port TFTP
1 parent 2696aa1 commit fe00be3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN \
2525
supervisor \
2626
syslog-ng \
2727
tar \
28-
tftp-hpa && \
28+
dnsmasq && \
2929
apk add --no-cache --virtual=build-dependencies \
3030
npm && \
3131
groupmod -g 1000 users && \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ Container images are configured using parameters passed at runtime (such as thos
116116
| `-e WEB_APP_PORT=3000` | Specify a different port for the web configuration interface to listen on. |
117117
| `-e NGINX_PORT=80` | Specify a different port for NGINX service to listen on. |
118118
| `-e MENU_VERSION=2.0.76` | Specify a specific version of boot files you want to use from netboot.xyz (unset pulls latest) |
119+
| `-e TFTPD_OPTS='--tftp-single-port'` | Specify arguments for the TFTP server (this example makes TFTP send all data over port 69) |
119120
| `-v /config` | Storage for boot menu files and web application config |
120121
| `-v /assets` | Storage for netboot.xyz bootable assets (live CDs and other files) |
121122

root/etc/supervisor.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ user=nbxyz
2121
directory=/app
2222
priority = 3
2323

24-
[program:in.tftpd]
25-
command=/usr/sbin/in.tftpd -Lvvv --user nbxyz --secure %(ENV_TFTPD_OPTS)s /config/menus
24+
[program:dnsmasq]
25+
command=/usr/sbin/dnsmasq --port=0 --keep-in-foreground --enable-tftp --user=nbxyz --tftp-secure --tftp-root=/config/menus %(ENV_TFTPD_OPTS)s
2626
stdout_logfile=/config/tftpd.log
2727
redirect_stderr=true
2828
priority = 4

0 commit comments

Comments
 (0)