You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/wgengine
Jonathan Nobels fb47824d74
wgengine: return explicit lo0 for loopback addrs on sandboxed macOS (#15493)
fixes tailscale/corp#27506

The source address link selection on sandboxed macOS doesn't deal
with loopback addresses correctly.  This adds an explicit check to ensure
we return the loopback interface for loopback addresses instead of the
default empty interface.

Specifically, this allows the dns resolver to route queries to a loopback
IP which is a common tactic for local DNS proxies.

Tested on both macos, macsys and tailscaled.  Forwarded requests to
127/8 all bound to lo0.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
8 months ago
..
bench ipn/ipnlocal, all: plumb health trackers in tests 2 years ago
filter wgengine/filter: add check for unknown proto 10 months ago
magicsock net/netmon, wgengine/magicsock: be quieter with portmapper logs 9 months ago
netlog wgengine: add exit destination logging enable for wgengine logger (#11952) 2 years ago
netstack tsnet,wgengine: fix src to primary Tailscale IP for TCP dials 9 months ago
router wgengine/router: refactor udm-pro into broader ubnt support 11 months ago
wgcfg wgengine/wgcfg/nmcfg: coalesce, limit some debug logs 10 months ago
wgint wgengine{,/wgint}: add wgint.Peer wrapper type, add to wgengine.Engine 2 years ago
wglog all: use Go 1.22 range-over-int 2 years ago
winnet all: add test for package comments, fix, add comments as needed 1 year ago
mem_ios.go all: update copyright and license headers 3 years ago
pendopen.go all: add Node.HomeDERP int, phase out "127.3.3.40:$region" hack [capver 111] 11 months ago
userspace.go wgengine: return explicit lo0 for loopback addrs on sandboxed macOS (#15493) 8 months ago
userspace_ext_test.go util/usermetrics: make usermetrics non-global 1 year ago
userspace_test.go util/usermetrics: make usermetrics non-global 1 year ago
watchdog.go feature/capture: move packet capture to feature/*, out of iOS + CLI 10 months ago
watchdog_js.go all: update copyright and license headers 3 years ago
watchdog_test.go util/usermetrics: make usermetrics non-global 1 year ago
wgengine.go feature/capture: move packet capture to feature/*, out of iOS + CLI 10 months ago