Thank you Jean for reporting this potential regression.
I've tried to reproduce according to the information you've written:

# setup (both noble & plucky)
ubuntu@dnsmasq-noble ~ % sudo apt install dnsmasq
ubuntu@dnsmasq-noble ~ % sudo ip link add dummy0 type dummy
ubuntu@dnsmasq-noble ~ % sudo ip addr add 192.168.1.1/24 dev dummy0

dnsmasq.conf:
port=0
interface=dummy0
bind-interfaces
dhcp-range=192.168.1.2,192.168.1.254

# running on noble
sudo dnsmasq -d -C dnsmasq.conf
dnsmasq: started, version 2.90 DNS disabled
dnsmasq-dhcp: DHCP, IP range 192.168.1.2 -- 192.168.1.254, lease time 1h
dnsmasq-dhcp: DHCP, sockets bound exclusively to interface dummy0

ubuntu@dnsmasq-noble ~ % sudo ss -tulpn | ag dnsmasq
udp   UNCONN 0      0     0.0.0.0%dummy0:67   0.0.0.0:*    
users:(("dnsmasq",pid=1418,fd=4))

# running on plucky
ubuntu@dnsmasq-plucky ~ % sudo dnsmasq -d -C dnsmasq.conf
dnsmasq: started, version 2.91 DNS disabled
dnsmasq-dhcp: DHCP, IP range 192.168.1.2 -- 192.168.1.254, lease time 1h
dnsmasq-dhcp: DHCP, sockets bound exclusively to interface dummy0

ubuntu@dnsmasq-plucky ~ % sudo ss -tulpn | ag dnsmasq
udp   UNCONN 0      0                       0.0.0.0%dummy0:67        0.0.0.0:*  
  users:(("dnsmasq",pid=1344,fd=4))


=> I don't see a regression here - both are listening on the interface dummy0

this even works when on plucky i have netcat running on *:67 with:
sudo nc -u -lp 67

and then start dnsmasq, so both listen on the ports:
ubuntu@dnsmasq-plucky ~ % sudo ss -tulpn | ag :67
udp   UNCONN 0      0        0.0.0.0%dummy0:67        0.0.0.0:*    
users:(("dnsmasq",pid=1390,fd=4))                    
udp   UNCONN 0      0        0.0.0.0:67        0.0.0.0:*    
users:(("nc",pid=1372,fd=3))


Thank you for your report, but I could not reproduce it. If this is still an 
issue for you, please report back!

** Changed in: dnsmasq (Ubuntu)
       Status: New => Incomplete

-- 
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to