Make dnsmasq NOT listen to localhost and ipv6

Started by xofer, November 24, 2020, 01:16:39 PM

Previous topic - Next topic
November 24, 2020, 01:16:39 PM Last Edit: November 24, 2020, 01:21:14 PM by xofer
Hi,

for reasons I would rather not go at the moment, I would like to bind dnsmasq to specific interfaces. However no matter what i do, according to netstat it binds additionally to:
udp6       0      0 ::1.53
udp4       0      0 127.0.0.1.53

I have selected two interfaces on my system and enabled Strict Interface Binding which says: If this option is set, Dnsmasq will only bind to the interfaces containing the IP addresses selected above, rather than binding to all interfaces and discarding queries to other addresses. This option does not work with IPv6. If set, Dnsmasq will not bind to IPv6 addresses.

November 24, 2020, 06:26:35 PM #1 Last Edit: November 24, 2020, 06:29:23 PM by Fright
dnsmasq.inc automatically adds  --listen-address args with loopback addresses to dnsmasq string.
and somehow --except-interface=lo0 not working to manualy exclude loopbacks.
if you really need the dnsmasq not bind to loopback you can comment out string in dnsmasq.inc
$interfaces[] = 'lo0';

Thanks, ill try that.
But the udp6 wildcard part? Any idea? The opnsense gui help text is misleading to say the least.

its ipv6 loopback
same story - "$interfaces[] = 'lo0'" adds all lo0 IPs: v4 and v6