Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsmasq tftp's 'get' function reports "operation not supported" #2286

Open
antbricks opened this issue Feb 26, 2025 · 4 comments
Open

dnsmasq tftp's 'get' function reports "operation not supported" #2286

antbricks opened this issue Feb 26, 2025 · 4 comments

Comments

@antbricks
Copy link

antbricks commented Feb 26, 2025

Versions

  • Pi-hole: v6.0.4
  • AdminLTE: v6.0.1
  • FTL: v6.0.2

Platform

  • OS and version: Debian
  • Platform: Raspberry Pi 3b+

Expected behavior

dnsmasq's tftp function can serve a file

Actual behavior / bug

After upgrade, dnsmasq's tftp server reports error on 'get' requests. This worked before the upgrade to 6.0.4, and I used it in some home automation scripts for several years.

kevin@pihole:~ $ atftp localhost
tftp> get entry_file
tftp: error received from server <unsupported request from ::1>
tftp: aborting
tftp>

Steps to reproduce

created /etc/dnsmasq.d/07-tftp.conf with the following contents:
enable-tftp
tftp-root=/srv/tftp
tftp-no-blocksize #(this option made no difference, but I tried it just in case)

in /etc/dnsmasq.conf, uncomment the line:
conf-dir=/etc/dnsmasq.d

run 'sudo service restart pihole-FTL'

execute a tftp transfer of a file ("entry_file" in this example)
(I installed atftp locally to rule out external network variables, but the resulting failure is identical externally)

antbricks@pihole:~ $ atftp localhost
tftp> get entry_file
tftp: error received from server <unsupported request from ::1>
tftp: aborting
tftp>

Debug Token

  • URL:

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

This used to work reliably. I can run pihole -d if that helps, just let me know.

@DL6ER
Copy link
Member

DL6ER commented Feb 27, 2025

Thank you. This is a bug in dnsmasq, introduced in pi-hole/dnsmasq@368ceff. We will contact the dnsmasq maintainers and get this fixed. Could you please try me assumed fix (which is nothing else than reverting what this other "fix" did), restores normal TFTP operation for you?

sudo pihole checkout ftl fix/dnsmasq_tftp

@DL6ER
Copy link
Member

DL6ER commented Feb 28, 2025

I updated the branch to contain the latest proposed fix.

@antbricks
Copy link
Author

fix/dnsmasq_tftp_patch restored tftp 'get' functionality, thanks!

@DL6ER
Copy link
Member

DL6ER commented Mar 1, 2025

Just to let you know: We are currently waiting on the dnsmasq codebase to be updated and contain the fix before merging it into FTL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants