tailscale/wgengine
Brad Fitzpatrick 85c3d17b3c wgengine/magicsock: use disco ping src as a candidate endpoint
Consider:

   Hard NAT (A) <---> Hard NAT w/ mapped port (B)

If A sends a packet to B's mapped port, A can disco ping B directly,
with low latency, without DERP.

But B couldn't establish a path back to A and needed to use DERP,
despite already logging about A's endpoint and adding a mapping to it
for other purposes (the wireguard conn.Endpoint lookup also needed
it).

This adds the tracking to discoEndpoint too so it'll be used for
finding a path back.

Fixes tailscale/corp#556

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-08-12 21:33:43 -07:00
..
filter wgengine/filter: omit logging for all v6 multicast, remove debug panic :( 2020-08-01 12:40:32 -07:00
magicsock wgengine/magicsock: use disco ping src as a candidate endpoint 2020-08-12 21:33:43 -07:00
monitor wgengine/monitor: add, clean up netlink logging on route changes 2020-08-12 13:27:14 -07:00
packet wgengine/filter: fix IPv4 IGMP spam omission, also omit ff02::16 spam 2020-07-30 11:00:20 -07:00
router wgengine/router/router_userspace_bsd: on Mac the route program syntax expects delete not del -- this had caused router reconfig to fail in some cases. Fixes #673 2020-08-12 13:22:19 -07:00
tsdns tsdns: implement reverse DNS lookups, canonicalize names everywhere. (#640) 2020-08-06 14:25:28 -04:00
tstun wgengine: configure wireguard peers lazily, as needed 2020-07-24 12:50:15 -07:00
winnet Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
rusage.go Move "logger" package to under types, now that we have it. 2020-02-14 20:23:05 -08:00
rusage_nowindows.go wgengine: flesh out some docs 2020-02-12 13:37:45 -08:00
rusage_windows.go Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
userspace.go net/interfaces: include DefaultRouteInterface in interfaces.State 2020-08-12 12:48:34 -07:00
userspace_test.go wgengine,magicsock: fix two lazy wireguard config issues 2020-08-06 15:02:29 -07:00
watchdog.go cmd/tailscale/cli: add ping subcommand 2020-08-10 12:50:56 -07:00
watchdog_test.go wgengine: prevent log after exit in watchdog test 2020-07-03 10:52:39 -07:00
wgengine.go cmd/tailscale/cli: add ping subcommand 2020-08-10 12:50:56 -07:00