On 12/02/2025 17:16, jean-christophe manciot wrote: > Now, if I add dhcp-range option, for instance: > dhcp-range=192.168.0.50,192.168.0.150,12h > > DHCP ports are open on **all** interfaces instead of just lo as specified > earlier: > /usr/bin/netstat -tunpevaW | grep dnsmasq > udp 0 0 0.0.0.0:67 0.0.0.0:* > 0 7411150 2807884/dnsmasq > udp 0 0 127.0.0.1:69 0.0.0.0:* > 0 7411153 2807884/dnsmasq > udp6 0 0 ::1:69 :::* > 0 7411154 2807884/dnsmasq >
That's as designed. To do DHCP successfully dnsmasq needs to get all packets. It will ignore packets arriving from interfaces it's not configured for. (You're unlikely to be able to do DHCP on the loopback interface, and certainly not with that dhcp-range. The only time when a DHCP server can do something sensible with packets arriving on lo is when there's a DHCP relay in use on the same machine, and that's pretty esoteric. Simon. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2098119 Title: dnsmasq opens DHCP server ports on all interfaces instead of just on the interface(s) defined in interface= setting To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/2098119/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs