tailscale/wgengine
Brad Fitzpatrick 0994a9f7c4 wgengine{,/magicsock}: fix, improve "tailscale ping" to default routes and subnets
e.g.

$ tailscale ping 1.1.1.1
exit node found but not enabled

$ tailscale ping 10.2.200.2
node "tsbfvlan2" found, but not using its 10.2.200.0/24 route

$ sudo tailscale  up --accept-routes
$ tailscale ping 10.2.200.2
pong from tsbfvlan2 (100.124.196.94) via 10.2.200.34:41641 in 1ms

$ tailscale ping mon.ts.tailscale.com
pong from monitoring (100.88.178.64) via DERP(sfo) in 83ms
pong from monitoring (100.88.178.64) via DERP(sfo) in 21ms
pong from monitoring (100.88.178.64) via [2604:a880:4:d1::37:d001]:41641 in 22ms

This necessarily moves code up from magicsock to wgengine, so we can
look at the actual wireguard config.

Fixes #1564

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-03-22 21:29:44 -07:00
..
filter net/packet, wgengine{,/filter}: remove net/packet IPProto forwarding consts 2021-03-20 21:45:47 -07:00
magicsock wgengine{,/magicsock}: fix, improve "tailscale ping" to default routes and subnets 2021-03-22 21:29:44 -07:00
monitor wgengine/monitor: skip more route messages on darwin 2021-03-16 12:59:26 -07:00
netstack wgengine/netstack: use inet.af/netstack, remove 64-bit only limitation 2021-03-17 22:46:09 -07:00
router wgengine/router: report to control when setPrivateNetwork fails 2021-03-15 16:19:40 -07:00
tsdns wgengine{,tsdns}: rebind MagicDNS forwarders on link change 2021-03-12 08:56:53 -08:00
tstun net/packet, wgengine{,/filter}: remove net/packet IPProto forwarding consts 2021-03-20 21:45:47 -07:00
wgcfg ipn/ipnlocal: only filter out default routes when computing the local wg config. 2021-02-24 20:41:56 -08:00
wglog wgengine/wglog: drop 1/s "interface is up" messages. 2021-02-23 09:01:58 -08:00
winnet wgengine/winnet: don't build on non-windows 2021-02-09 21:09:24 -08:00
ifstatus_noop.go wgengine: make NewUserspaceEngine wait for TUN interface to be up on Windows 2021-02-25 07:58:17 -08:00
ifstatus_windows.go wgengine: make NewUserspaceEngine wait for TUN interface to be up on Windows 2021-02-25 07:58:17 -08:00
pendopen.go wgengine{,/magicsock}: fix, improve "tailscale ping" to default routes and subnets 2021-03-22 21:29:44 -07:00
userspace_test.go cmd/tailscaled, wgengine: remove --fake, replace with netstack 2021-03-01 11:09:19 -08:00
userspace.go wgengine{,/magicsock}: fix, improve "tailscale ping" to default routes and subnets 2021-03-22 21:29:44 -07:00
watchdog_test.go cmd/tailscaled, wgengine: remove --fake, replace with netstack 2021-03-01 11:09:19 -08:00
watchdog.go client, cmd/hello, ipn, wgengine: fix whois for netstack-forwarded connections 2021-03-15 18:14:09 -04:00
wgengine.go client, cmd/hello, ipn, wgengine: fix whois for netstack-forwarded connections 2021-03-15 18:14:09 -04:00