[Dnsmasq-discuss] Packet gets lost in multiinterface device

Simon Kelley simon at thekelleys.org.uk
Tue Aug 31 20:15:57 UTC 2021

On 25/08/2021 16:08, jahangir Zaib wrote:
> Hi simon,
> I am using dnsmasq as DHCP-Server for my Wlan-Device. I face problems,
> if I open various interfaces like guests or virtual on my device. The
> packet destined for a particular interface, sent by linux through other
> interface. By using *SO_BINDTODEVICE* I am able to manualy bind the
> interface to a specific socket, which I wiresharked and found out to be
> always same. I want to make it dynamic binding. Socket 1-10 binds to
> Interface 1-10. Do you have any documentation or any tips for me so I
> can achieve it.
> I'll highly appreciate your response.
> thanks
> Jahangir

What does your configuration look like?

Dnsmasq calls SO_BINDTODEVICE on the DHCP socket when it can (when only
one interface is configured.) If multiple interfaces are configured, it
should work without binding to a device, but there are corner cases
which have problems.



More information about the Dnsmasq-discuss mailing list