Files
Mike Jensen 8dde70b8ca net/dns/{resolver,ipnlocal}: restrict reverse MagicDNS answers by source
A LAN-adjacent attacker can reach quad-100 on an IP-forwarding host and sweep the CGNAT range for reverse dns records to enumerate the responding node's peer set.

Restrict reverse (PTR) answers for Tailscale addresses (CGNAT plus ULA) to queries from loopback or the local peer node address only, refusing all other sources with REFUSED. Forward lookups, statics outside the Tailscale ranges, and exit-node/app-connector peer DNS are unchanged.

Fixes tailscale/corp#48229

Reported-by: @keeleysam
Change-Id: I2cf49c6cb2faa15fdde6a837b158b50cf449b26e
Signed-off-by: Mike Jensen <mikej@tailscale.com>
2026-09-22 12:30:31 -06:00
..