[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections by default
Thanks for confirming! For the original issue of "Address family not supported by protocol" I am marking this as 'Fix Released'. For the separate issue brought up about not seeing netstat output for IPv4, the following was brought to my attention: '...a process that binds on both by not specifying (or whatever it is it does) ends up in an "netstat --inet6 -nlp" listing but not that "netstat --inet -nlp" one.' As such I do not believe there is an issue here, understandably a user experience one with netstat, but not with tftp-hpa. ** Changed in: tftp-hpa (Ubuntu) Status: Incomplete => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections by default To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections by default
I can confirm that it works with IPv4 as expected with the default configuration. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections by default To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections by default
The original issue was the following message "in.tftpd[4295]: connect: Address family not supported by protocol". This appears to have been fixed in version 5.2+20150808-1, see Debian bug 793921 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=793921). This version is found in Xenial (16.04) or later. Due to the fact that this bug was original found with Vivid (15.04) I would ask that it be verified on the supported version found in Xenial and reply if it still occurs. I will move the bug to incomplete until I hear back. The second issue that was brought up in the bug discussion above was due to a change to default configuration. Namely /etc/default/tftpd-hpa was changed to use 'TFTP_ADDRESS="[::]:69"' due to LP: #1228340, which was over 3 years ago. This changed the default behavior in Trusty (14.04) and forward. While I too do not see any IPv4 udp results while running `sudo netstat -lp | grep tftp`, I can confirm that connecting to a server setup with the default configuration using `tftp -4 ` works. I am not sure of the explanation yet, but if this is another issue we should file a different bug and track it. I however, do not believe that tftpd-hpa has been broken for 3 years. This does not appear to affect Debian stable or unstable as the default configuration file in /etc/default/tftpd-hpa for both looks like: TFTP_USERNAME="tftp" TFTP_DIRECTORY="/srv/tftp" TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="--secure" ** Bug watch added: Debian Bug tracker #793921 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=793921 ** Changed in: tftp-hpa (Ubuntu) Status: Triaged => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections by default To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections by default
** Changed in: tftp-hpa (Ubuntu) Assignee: (unassigned) => Joshua Powers (powersj) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections by default To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections by default
17:16 stgraber: any opinion on bug 1448500 please? 17:18 rbasak: if just :69 instead of [::]:69 causes it to do the right thing, I don't have a problem with that change ** Summary changed: - tftp-hpa doesn't accept IPv4 connections + tftp-hpa doesn't accept IPv4 connections by default ** Tags added: server-next ** Tags added: bitesize ** Changed in: tftp-hpa (Ubuntu) Status: Confirmed => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections by default To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
Can confirm that Rafael's change in comment #7 works :-) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
FIX: Just edit /etc/default/tftpd-hpa and remove [::] from line TFTP_ADDRESS=[::]:69 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
FIX: Just edit /etc/default/tftpd-hpa and remove [::] from line TFTP_ADDRESS=[::]:69 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
That seems to work to get it to listen of both IPv4 and IPv6. Not sure if it's a true fix or just a workaround though. Did something in the code change? % sudo netstat -lp | grep tftp udp0 0 *:tftp *:* 2095/in.tftpd udp6 0 0 [::]:tftp [::]:* 2095/in.tftpd -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
That seems to work to get it to listen of both IPv4 and IPv6. Not sure if it's a true fix or just a workaround though. Did something in the code change? % sudo netstat -lp | grep tftp udp0 0 *:tftp *:* 2095/in.tftpd udp6 0 0 [::]:tftp [::]:* 2095/in.tftpd -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
It seems tftpd-hpa interprets option --address ::69 to mean that only listen on IPv6: 1. By default (with TFTP_ADDRESS=[::]:69) it is started as /usr/sbin/in.tftpd --listen --user tftp --address [::]:69 --secure --create /srv/tftp 2. netstat (command sudo netstat -anutp | grep '[:]69') shows: udp6 0 0 :::69 :::* 10681/in.tftpd I do not know and I am not interested to check the source code if there is way to explicitly tell tftpd-hpa to listen on all interfaces, both IPv4 and IPv6, but if you just omit the --address option, tftpd-hpa - per netstat output - listens on all interfaces both IPv4 and IPv6; when I start tftp-hpa as /usr/sbin/in.tftpd --listen --user tftp --secure --create /srv/tftp then netstat shows udp0 0 0.0.0.0:69 0.0.0.0:* 24607/in.tftpd udp6 0 0 :::69 :::* 24607/in.tftpd I accomplished this by hacking /etc/init.d/tftpd-hpa as follows: diff --git a/init.d/tftpd-hpa b/init.d/tftpd-hpa index 115ca4e..a4a5b60 100755 --- a/init.d/tftpd-hpa +++ b/init.d/tftpd-hpa @@ -52,9 +52,15 @@ do_start() fi done + if [ $TFTP_ADDRESS = [::]:69 ]; then# all interfaces + start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- \ +--listen --user $TFTP_USERNAME \ + $TFTP_OPTIONS $TFTP_DIRECTORY + else start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- \ --listen --user $TFTP_USERNAME --address $TFTP_ADDRESS \ $TFTP_OPTIONS $TFTP_DIRECTORY + fi } do_stop () -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
NOTE: There is an obvious limitation in the above solution - if you want to listen on different port then you are back to square one. I wish this helps someone to bypass the problem while waiting for proper and complete fix. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
NOTE: There is an obvious limitation in the above solution - if you want to listen on different port then you are back to square one. I wish this helps someone to bypass the problem while waiting for proper and complete fix. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
It seems tftpd-hpa interprets option --address ::69 to mean that only listen on IPv6: 1. By default (with TFTP_ADDRESS=[::]:69) it is started as /usr/sbin/in.tftpd --listen --user tftp --address [::]:69 --secure --create /srv/tftp 2. netstat (command sudo netstat -anutp | grep '[:]69') shows: udp6 0 0 :::69 :::* 10681/in.tftpd I do not know and I am not interested to check the source code if there is way to explicitly tell tftpd-hpa to listen on all interfaces, both IPv4 and IPv6, but if you just omit the --address option, tftpd-hpa - per netstat output - listens on all interfaces both IPv4 and IPv6; when I start tftp-hpa as /usr/sbin/in.tftpd --listen --user tftp --secure --create /srv/tftp then netstat shows udp0 0 0.0.0.0:69 0.0.0.0:* 24607/in.tftpd udp6 0 0 :::69 :::* 24607/in.tftpd I accomplished this by hacking /etc/init.d/tftpd-hpa as follows: diff --git a/init.d/tftpd-hpa b/init.d/tftpd-hpa index 115ca4e..a4a5b60 100755 --- a/init.d/tftpd-hpa +++ b/init.d/tftpd-hpa @@ -52,9 +52,15 @@ do_start() fi done + if [ $TFTP_ADDRESS = [::]:69 ]; then# all interfaces + start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- \ +--listen --user $TFTP_USERNAME \ + $TFTP_OPTIONS $TFTP_DIRECTORY + else start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- \ --listen --user $TFTP_USERNAME --address $TFTP_ADDRESS \ $TFTP_OPTIONS $TFTP_DIRECTORY + fi } do_stop () -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
I have the same issue where the first GET request works, but then times out and produces this error until service is restarted. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
I have the same issue where the first GET request works, but then times out and produces this error until service is restarted. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
At me works at first client get, after that only if restart server. I have ubuntu 15.04 upgraded from 14.10, and I have tried a apt-get remove --purge and install again, and continues. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
At me works at first client get, after that only if restart server. I have ubuntu 15.04 upgraded from 14.10, and I have tried a apt-get remove --purge and install again, and continues. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
** Changed in: tftp-hpa (Ubuntu) Importance: Undecided = High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
** Changed in: tftp-hpa (Ubuntu) Importance: Undecided = High -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: tftp-hpa (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tftp-hpa in Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1448500] Re: tftp-hpa doesn't accept IPv4 connections
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: tftp-hpa (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1448500 Title: tftp-hpa doesn't accept IPv4 connections To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs