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
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>
3 years ago
..
filter net/packet, wgengine{,/filter}: remove net/packet IPProto forwarding consts 3 years ago
magicsock wgengine{,/magicsock}: fix, improve "tailscale ping" to default routes and subnets 3 years ago
monitor wgengine/monitor: skip more route messages on darwin 3 years ago
netstack wgengine/netstack: use inet.af/netstack, remove 64-bit only limitation 3 years ago
router wgengine/router: report to control when setPrivateNetwork fails 3 years ago
tsdns wgengine{,tsdns}: rebind MagicDNS forwarders on link change 3 years ago
tstun net/packet, wgengine{,/filter}: remove net/packet IPProto forwarding consts 3 years ago
wgcfg ipn/ipnlocal: only filter out default routes when computing the local wg config. 3 years ago
wglog wgengine/wglog: drop 1/s "interface is up" messages. 3 years ago
winnet wgengine/winnet: don't build on non-windows 3 years ago
ifstatus_noop.go wgengine: make NewUserspaceEngine wait for TUN interface to be up on Windows 3 years ago
ifstatus_windows.go wgengine: make NewUserspaceEngine wait for TUN interface to be up on Windows 3 years ago
pendopen.go wgengine{,/magicsock}: fix, improve "tailscale ping" to default routes and subnets 3 years ago
userspace.go wgengine{,/magicsock}: fix, improve "tailscale ping" to default routes and subnets 3 years ago
userspace_test.go cmd/tailscaled, wgengine: remove --fake, replace with netstack 3 years ago
watchdog.go client, cmd/hello, ipn, wgengine: fix whois for netstack-forwarded connections 3 years ago
watchdog_test.go cmd/tailscaled, wgengine: remove --fake, replace with netstack 3 years ago
wgengine.go client, cmd/hello, ipn, wgengine: fix whois for netstack-forwarded connections 3 years ago