[Dnsmasq-discuss] [PATCH] Introduce local-service=host specialization
Petr Menšík
pemensik at redhat.com
Thu Nov 30 17:59:04 UTC 2023
Hello!
I have sent similar proposal already in year 2021 [1]. But I have
reworked that a bit to reuse existing --local-service option and just
add new parameter to it. If --local-service=host is used, dnsmasq will
bind to addresses on lo interface only. It will not even open port on
other interfaces, preventing possible scanning of running service from
outside.
It roughly becomes similar default like other resolvers without
configuration use. BIND9 or unbound will listen also on localhost only.
To avoid regressions, it still becomes inactive when any --interface,
--listen-address or similar is specified at least once. Then you have to
explicitly use --interface=lo to listen *also* on localhost.
The change is related to Fedora bug #1852373 [2], also newly re-opened
CVE-2020-14312 issue for RHEL8 [3]. Having explicitly specified
bind-interfaces & interface=lo in dnsmasq default configuration has
resulted in multiple regressions across different packages, which did
not rewrite distribution provided configuration. I think it could be
useful also for others.
What do you think?
Looking for any feedback!
Regards,
Petr
1.
https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q4/015749.html
2. https://bugzilla.redhat.com/show_bug.cgi?id=1852373
3. https://issues.redhat.com/browse/RHEL-9516
--
Petr Menšík
Software Engineer, RHEL
Red Hat, https://www.redhat.com/
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Introduce-new-local-service-host-parameter.patch
Type: text/x-patch
Size: 7546 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20231130/ff03e135/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x4931CA5B6C9FC5CB.asc
Type: application/pgp-keys
Size: 9098 bytes
Desc: OpenPGP public key
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20231130/ff03e135/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20231130/ff03e135/attachment-0001.sig>
More information about the Dnsmasq-discuss
mailing list