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
Nick Khyl 7ef1fb113d cmd/tailscaled, ipn/ipnlocal, wgengine: shutdown tailscaled if wgdevice is closed
Tailscaled becomes inoperative if the Tailscale Tunnel wintun adapter is abruptly removed.
wireguard-go closes the device in case of a read error, but tailscaled keeps running.
This adds detection of a closed WireGuard device, triggering a graceful shutdown of tailscaled.
It is then restarted by the tailscaled watchdog service process.

Fixes #11222

Signed-off-by: Nick Khyl <nickk@tailscale.com>
9 months ago
..
bench tailcfg, all: use []netip.AddrPort instead of []string for Endpoints 1 year ago
capture various: add golangci-lint, fix issues (#7905) 2 years ago
filter wgengine/filter: add protocol-agnostic packet checker (#10446) 12 months ago
magicsock all: remove LenIter, use Go 1.22 range-over-int instead 9 months ago
netlog wgengine/netlog: fix nil pointer dereference in logtail (#8598) 1 year ago
netstack wgengine/netstack: expose TCP forwarder drops via clientmetrics 9 months ago
router wgengine/router: fix ip rule restoration 9 months ago
wgcfg all: remove LenIter, use Go 1.22 range-over-int instead 9 months ago
wgint all: use reflect.TypeFor now available in Go 1.22 (#11078) 10 months ago
wglog wgengine/wglog: add TS_DEBUG_RAW_WGLOG envknob for raw wg logs 9 months ago
winnet all: update copyright and license headers 2 years ago
mem_ios.go all: update copyright and license headers 2 years ago
pendopen.go all: remove LenIter, use Go 1.22 range-over-int instead 9 months ago
userspace.go cmd/tailscaled, ipn/ipnlocal, wgengine: shutdown tailscaled if wgdevice is closed 9 months ago
userspace_ext_test.go tsd: add package with System type to unify subsystem init, discovery 2 years ago
userspace_test.go control,tailcfg,wgengine/magicsock: add nodeAttr to enable/disable peer MTU 1 year ago
watchdog.go cmd/tailscaled, ipn/ipnlocal, wgengine: shutdown tailscaled if wgdevice is closed 9 months ago
watchdog_js.go all: update copyright and license headers 2 years ago
watchdog_test.go all: update copyright and license headers 2 years ago
wgengine.go cmd/tailscaled, ipn/ipnlocal, wgengine: shutdown tailscaled if wgdevice is closed 9 months ago