Re: [Dnsmasq-discuss] Problem with TFTP in dnsmasq
On 08/06/2021 21:54, Brown, Aaron M. wrote: > Hello all, > > I'm having trouble getting dnsmasq and tftp to work and I'm tearing my hair > out. I'm hoping someone can potentially hit me with the clue by four and > point out what dumb thing I'm missing. > > In the bigger scope, I'm trying to get PXE booting setup on a server, but at > the moment before I even get to anything more complicated, I'm struggling > just to get TFTP to work. I have set up my /etc/dnsmasq.conf file as the > following: > > interface=bond0 > port=0 > enable-tftp > tftp-root=/tftp > log-dhcp > dhcp-range=,proxy > dhcp-no-override > > dnsmasq is up and running without errors. I put a simple file in /tftp called > "test.txt". The /tftp directory has been set to 755 permissions. > > I then go to client computer and using a tftp client attempt to GET the > test.txt file but it times out without retrieving the file. > > There is no firewall running when I do this on either server or client and I > can ping from both client and server to each other. > > On the server, I see in a tcpdump of port 69 that the client is making RRQ > requests. When I look at the status of the dnsmasq service I see: > > Jun 08 16:13:46 dnsmasq-tftp[258381]: failed sending > /tftp/test.txt to > > There's a similar message in /var/log/syslog as well for dnsmasq-tftp failing > to send the file. I've been pouring over the docs/man pages and the sample > .conf file, but I'm clearly not understanding what I'm missing. > > Anyone have any ideas? I've searched the web for similar problems, but I > haven't been able to find anything that resembles my situation. Usually > people seem to have issues after this point with what TFTP is passing out, > not just getting TFPT up and running. > Dnsmasq is timing out awaiting acknowledgement from the client. Tftp transactions start with a packet from the client to port 69, and the reply is from a different, newly allocated port. The client should then use that port for subsequent requests, so it's worth looking at all UDP traffic in tcpdump. What version of dnsmasq are you using? Simon. > Server OS: Ubuntu 20.04 Server > Client OS: Ubuntu 20.04 Desktop > > Aaron M Brown > Engineering College Computing > Desktop Administrator > NI1013A - 419.530.8022 > > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss > ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Problem with TFTP in dnsmasq
On Wed, Jun 09, 2021 at 12:53:40PM +, Brown, Aaron M. wrote: > From: Geert Stappers ; Sent: Wednesday, June 9, 2021 03:58 > > > And which permissions has file 'test.txt'? > > The file test.txt is 755 as well. Acknowledge > > Please explicite that the filename is 'test.txt' for the tftp GET. > > ( not '/tftp/test.txt' ) > > I just verified to be sure. Yes, I'm using the command tftp> GET test.txt > I've also tried variations like tftp> GET "test.txt" just to be sure > (even knowing they'd probably throw invalid command errors). Ack > >> Anyone have any ideas? > > >Only a wild guess: > >Dnsmasq process has NOT the privelege to send. > > >I don't know if such thing exists, but I'm thinking "capabilities". > >Capabilities as in > >https://manpages.debian.org/buster/manpages/capabilities.7.en.html > > Wild guess or not, I'll dig into this today, thank you for a possible lead! Further option: Tell how and where dnsmasq is started. Groeten Geert Stappers -- Silence is hard to parse ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Problem with TFTP in dnsmasq
On Wed, Jun 09, 2021 at 06:02:55PM +0200, john doe wrote: > On 6/9/2021 2:31 PM, Brown, Aaron M. wrote: > > > I'll assume that you have an other DHCP serverdishing out IP addresses. > > > > I do and proxyDHCP is going to be my only option. > > > > > If you want Dnsmasq to provide dhcp and PXE booting, you might > > > want to remove 'proxy' from the above range. > > > > I mean, sure, but I'm not even to the point of worrying about PXE > > booting. I can't get a basic GET from the TFTP server which is the > > issue. If the TFTP server isn't working, then nothing else down the > > chain of PXE is going to work. I guess what I'm saying is, I'm not > > worried about configuring up dhcpProxy and PXE yet since TFTP isn't > > even operating correctly (and I don't know why). > > > > My understanding is that, in 'proxy' mode, dnsmasq will only provide PXE > related stuff so tftp as such will never work. > > Can't you manage to find a way to test without 'proxy' to see how it goes? It is something worth to explore ... Groeten Geert Stappers -- Silence is hard to parse ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Problem with TFTP in dnsmasq
On 6/9/2021 2:31 PM, Brown, Aaron M. wrote: I'll assume that you have an other DHCP serverdishing out IP addresses. I do and proxyDHCP is going to be my only option. If you want Dnsmasq to provide dhcp and PXE booting, you might want to remove 'proxy' from the above range. I mean, sure, but I'm not even to the point of worrying about PXE booting. I can't get a basic GET from the TFTP server which is the issue. If the TFTP server isn't working, then nothing else down the chain of PXE is going to work. I guess what I'm saying is, I'm not worried about configuring up dhcpProxy and PXE yet since TFTP isn't even operating correctly (and I don't know why). My understanding is that, in 'proxy' mode, dnsmasq will only provide PXE related stuff so tftp as such will never work. Can't you manage to find a way to test without 'proxy' to see how it goes? -- John Doe ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Problem with TFTP in dnsmasq
> Please, more respect for yourself. > You are doing great. Do known that you detected that you are stuck. > It was you who made the step to ask mankind for help. I was being silly, but thank you for the kind words. > And which permissions has file 'test.txt'? The file test.txt is 755 as well. > Please explicite that the filename is 'test.txt' for the tftp GET. > ( not '/tftp/test.txt' ) I just verified to be sure. Yes, I'm using the command tftp> GET test.txt I've also tried variations like tftp> GET "test.txt" just to be sure (even knowing they'd probably throw invalid command errors). >> Anyone have any ideas? >Only a wild guess: >Dnsmasq process has NOT the privelege to send. >I don't know if such thing exists, but I'm thinking "capabilities". >Capabilities as in >https://manpages.debian.org/buster/manpages/capabilities.7.en.html Wild guess or not, I'll dig into this today, thank you for a possible lead! amb -Original Message- From: Geert Stappers Sent: Wednesday, June 9, 2021 03:58 To: dnsmasq-discuss@lists.thekelleys.org.uk Subject: Re: [Dnsmasq-discuss] Problem with TFTP in dnsmasq On Tue, Jun 08, 2021 at 08:54:45PM +, Brown, Aaron M. wrote: > Hello all, > > I'm having trouble getting dnsmasq and tftp to work and I'm tearing my > hair out. I'm hoping someone can potentially hit me with the clue by > four and point out what dumb thing I'm missing. Please, more respect for yourself. You are doing great. Do known that you detected that you are stuck. It was you who made the step to ask mankind for help. Short: Be kind enough to respond to this posting. > In the bigger scope, I'm trying to get PXE booting setup on a server, > but at the moment before I even get to anything more complicated, I'm > struggling just to get TFTP to work. I have set up my > /etc/dnsmasq.conf file as the following: > > interface=bond0 > port=0 > enable-tftp > tftp-root=/tftp > log-dhcp > dhcp-range=,proxy > dhcp-no-override > > dnsmasq is up and running without errors. I put a simple file in /tftp > called "test.txt". The /tftp directory has been set to 755 permissions. And which permissions has file 'test.txt'? > I then go to client computer and using a tftp client attempt to GET > the test.txt file but it times out without retrieving the file. Please explicite that the filename is 'test.txt' for the tftp GET. ( not '/tftp/test.txt' ) > There is no firewall running when I do this on either server or client > and I can ping from both client and server to each other. Acknowledge. > On the server, I see in a tcpdump of port 69 that the client is making > RRQ requests. When I look at the status of the dnsmasq service I see: > > Jun 08 16:13:46 dnsmasq-tftp[258381]: failed sending > /tftp/test.txt to > > There's a similar message in /var/log/syslog as well for dnsmasq-tftp > failing to send the file. > I've been pouring over the docs/man pages and the sample .conf file, > but I'm clearly not understanding what I'm missing. It is surely an interresting problem. > Anyone have any ideas? Only a wild guess: Dnsmasq process has NOT the privelege to send. I don't know if such thing exists, but I'm thinking "capabilities". Capabilities as in https://manpages.debian.org/buster/manpages/capabilities.7.en.html > I've searched the web for similar problems, but I haven't been able to > find anything that resembles my situation. Usually people seem to have > issues after this point with what TFTP is passing out, not just > getting TFPT up and running. :-) Acknowledge on "your question is very valid". Otherwise I would have ignored it. Backgrond information at http://www.catb.org/~esr/faqs/smart-questions.html > Server OS: Ubuntu 20.04 Server > Client OS: Ubuntu 20.04 Desktop > > Aaron M Brown > Engineering College Computing > Desktop Administrator > NI1013A - 419.530.8022 Groeten Geert Stappers P.S. Dnsmasq tftp works for me ... -- Silence is hard to parse ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Problem with TFTP in dnsmasq
> I'll assume that you have an other DHCP serverdishing out IP addresses. I do and proxyDHCP is going to be my only option. >If you want Dnsmasq to provide dhcp and PXE booting, you might want to remove >'proxy' from the above range. I mean, sure, but I'm not even to the point of worrying about PXE booting. I can't get a basic GET from the TFTP server which is the issue. If the TFTP server isn't working, then nothing else down the chain of PXE is going to work. I guess what I'm saying is, I'm not worried about configuring up dhcpProxy and PXE yet since TFTP isn't even operating correctly (and I don't know why). amb -Original Message- From: john doe Sent: Wednesday, June 9, 2021 03:25 To: dnsmasq-discuss@lists.thekelleys.org.uk Subject: Re: [Dnsmasq-discuss] Problem with TFTP in dnsmasq On 6/8/2021 10:54 PM, Brown, Aaron M. wrote: > Hello all, > > I'm having trouble getting dnsmasq and tftp to work and I'm tearing my hair > out. I'm hoping someone can potentially hit me with the clue by four and > point out what dumb thing I'm missing. > > In the bigger scope, I'm trying to get PXE booting setup on a server, but at > the moment before I even get to anything more complicated, I'm struggling > just to get TFTP to work. I have set up my /etc/dnsmasq.conf file as the > following: > > interface=bond0 > port=0 > enable-tftp > tftp-root=/tftp > log-dhcp > dhcp-range=,proxy > From (1): "Dnsmasq supports PXE "proxy-DHCP", in this case another DHCP server on the network is responsible for allocating IP addresses, and dnsmasq simply provides the information given in --pxe-prompt and --pxe-service to allow netbooting. This mode is enabled using the proxy keyword in --dhcp-range." I'll assume that you have an other DHCP serverdishing out IP addresses. > dhcp-no-override > > dnsmasq is up and running without errors. I put a simple file in /tftp called > "test.txt". The /tftp directory has been set to 755 permissions. > If you want Dnsmasq to provide dhcp and PXE booting, you might want to remove 'proxy' from the above range. HTH. 1) https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html -- John Doe ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Problem with TFTP in dnsmasq
On Tue, Jun 08, 2021 at 08:54:45PM +, Brown, Aaron M. wrote: > Hello all, > > I'm having trouble getting dnsmasq and tftp to work and I'm tearing > my hair out. I'm hoping someone can potentially hit me with the clue > by four and point out what dumb thing I'm missing. Please, more respect for yourself. You are doing great. Do known that you detected that you are stuck. It was you who made the step to ask mankind for help. Short: Be kind enough to respond to this posting. > In the bigger scope, I'm trying to get PXE booting setup on a server, > but at the moment before I even get to anything more complicated, I'm > struggling just to get TFTP to work. I have set up my /etc/dnsmasq.conf > file as the following: > > interface=bond0 > port=0 > enable-tftp > tftp-root=/tftp > log-dhcp > dhcp-range=,proxy > dhcp-no-override > > dnsmasq is up and running without errors. I put a simple file in /tftp > called "test.txt". The /tftp directory has been set to 755 permissions. And which permissions has file 'test.txt'? > I then go to client computer and using a tftp client attempt to GET > the test.txt file but it times out without retrieving the file. Please explicite that the filename is 'test.txt' for the tftp GET. ( not '/tftp/test.txt' ) > There is no firewall running when I do this on either server or client > and I can ping from both client and server to each other. Acknowledge. > On the server, I see in a tcpdump of port 69 that the client is making > RRQ requests. When I look at the status of the dnsmasq service I see: > > Jun 08 16:13:46 dnsmasq-tftp[258381]: failed sending > /tftp/test.txt to > > There's a similar message in /var/log/syslog as well for dnsmasq-tftp > failing to send the file. > I've been pouring over the docs/man pages and the sample .conf file, > but I'm clearly not understanding what I'm missing. It is surely an interresting problem. > Anyone have any ideas? Only a wild guess: Dnsmasq process has NOT the privelege to send. I don't know if such thing exists, but I'm thinking "capabilities". Capabilities as in https://manpages.debian.org/buster/manpages/capabilities.7.en.html > I've searched the web for similar problems, but I haven't been able > to find anything that resembles my situation. Usually people seem to > have issues after this point with what TFTP is passing out, not just > getting TFPT up and running. :-) Acknowledge on "your question is very valid". Otherwise I would have ignored it. Backgrond information at http://www.catb.org/~esr/faqs/smart-questions.html > Server OS: Ubuntu 20.04 Server > Client OS: Ubuntu 20.04 Desktop > > Aaron M Brown > Engineering College Computing > Desktop Administrator > NI1013A - 419.530.8022 Groeten Geert Stappers P.S. Dnsmasq tftp works for me ... -- Silence is hard to parse ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Problem with TFTP in dnsmasq
On 6/8/2021 10:54 PM, Brown, Aaron M. wrote: Hello all, I'm having trouble getting dnsmasq and tftp to work and I'm tearing my hair out. I'm hoping someone can potentially hit me with the clue by four and point out what dumb thing I'm missing. In the bigger scope, I'm trying to get PXE booting setup on a server, but at the moment before I even get to anything more complicated, I'm struggling just to get TFTP to work. I have set up my /etc/dnsmasq.conf file as the following: interface=bond0 port=0 enable-tftp tftp-root=/tftp log-dhcp dhcp-range=,proxy > From (1): "Dnsmasq supports PXE "proxy-DHCP", in this case another DHCP server on the network is responsible for allocating IP addresses, and dnsmasq simply provides the information given in --pxe-prompt and --pxe-service to allow netbooting. This mode is enabled using the proxy keyword in --dhcp-range." I'll assume that you have an other DHCP serverdishing out IP addresses. > dhcp-no-override > dnsmasq is up and running without errors. I put a simple file in /tftp called "test.txt". The /tftp directory has been set to 755 permissions. If you want Dnsmasq to provide dhcp and PXE booting, you might want to remove 'proxy' from the above range. HTH. 1) https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html -- John Doe ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] Problem with TFTP in dnsmasq
Hello all, I'm having trouble getting dnsmasq and tftp to work and I'm tearing my hair out. I'm hoping someone can potentially hit me with the clue by four and point out what dumb thing I'm missing. In the bigger scope, I'm trying to get PXE booting setup on a server, but at the moment before I even get to anything more complicated, I'm struggling just to get TFTP to work. I have set up my /etc/dnsmasq.conf file as the following: interface=bond0 port=0 enable-tftp tftp-root=/tftp log-dhcp dhcp-range=,proxy dhcp-no-override dnsmasq is up and running without errors. I put a simple file in /tftp called "test.txt". The /tftp directory has been set to 755 permissions. I then go to client computer and using a tftp client attempt to GET the test.txt file but it times out without retrieving the file. There is no firewall running when I do this on either server or client and I can ping from both client and server to each other. On the server, I see in a tcpdump of port 69 that the client is making RRQ requests. When I look at the status of the dnsmasq service I see: Jun 08 16:13:46 dnsmasq-tftp[258381]: failed sending /tftp/test.txt to There's a similar message in /var/log/syslog as well for dnsmasq-tftp failing to send the file. I've been pouring over the docs/man pages and the sample .conf file, but I'm clearly not understanding what I'm missing. Anyone have any ideas? I've searched the web for similar problems, but I haven't been able to find anything that resembles my situation. Usually people seem to have issues after this point with what TFTP is passing out, not just getting TFPT up and running. Server OS: Ubuntu 20.04 Server Client OS: Ubuntu 20.04 Desktop Aaron M Brown Engineering College Computing Desktop Administrator NI1013A - 419.530.8022 ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss