[Dnsmasq-discuss] Single-port mode for TFTP

Geert Stappers stappers at stappers.nl
Mon Dec 30 19:52:45 GMT 2019


On Mon, Dec 30, 2019 at 06:36:49PM +0100, kvaps wrote:
> On Mon, Dec 30, 2019 at 2:42 PM john doe <johndoe65534 at mail.com> wrote:
> > Dec 30 2019, kvaps wrote:
> > >   ...
> > Isn't the below flag what you want from (1):
> >
> > "--tftp-port-range=<start>,<end>
> > A TFTP server listens on a well-known port (69) for connection
> > initiation, but it also uses a dynamically-allocated port for each
> > connection. Normally these are allocated by the OS, but this option
> > specifies a range of ports for use by TFTP transfers. This can be useful
> > when TFTP has to traverse a firewall. The start of the range cannot be
> > lower than 1025 unless dnsmasq is running as root. The number of
> > concurrent TFTP connections is limited by the size of the port range."
> >
> >
> > 1)  http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
> >
> 
> Unfortunately it isn't working correctly, if I run dnsmasq with static port
> range:
> 
> dnsmasq -d --enable-tftp --tftp-port-range=69,69
> 
> It reports an error:
> 
> dnsmasq-tftp: unable to get free port for TFTP
> 
> when I try to download any file from it
> - kvaps


dnsmasq -d --enable-tftp --tftp-port-range=1069,1069



More information about the Dnsmasq-discuss mailing list