Skip to content

Commit

Permalink
Replace in.tftp with dnsmasq, to add support for single-port TFTP
Browse files Browse the repository at this point in the history
  • Loading branch information
dezeroku committed Jan 31, 2024
1 parent 2a36c1a commit f36db2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN \
supervisor \
syslog-ng \
tar \
tftp-hpa && \
dnsmasq && \
apk add --no-cache --virtual=build-dependencies \
npm && \
groupmod -g 1000 users && \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Container images are configured using parameters passed at runtime (such as thos
| `-p 80` | NGINX server for hosting assets. |
| `-e NGINX_PORT=80` | Specify a different port for NGINX service to listen on. |
| `-e MENU_VERSION=2.0.76` | Specify a specific version of boot files you want to use from netboot.xyz (unset pulls latest) |
| `-e TFTPD_OPTS='--tftp-single-port'` | Specify arguments for the TFTP server (this example makes TFTP send all data over port 69) |
| `-v /config` | Storage for boot menu files and web application config |
| `-v /assets` | Storage for netboot.xyz bootable assets (live CDs and other files) |

Expand Down
4 changes: 2 additions & 2 deletions root/etc/supervisor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ user=nbxyz
directory=/app
priority = 3

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

0 comments on commit f36db2e

Please sign in to comment.