tailscale/wgengine
Brad Fitzpatrick 4afc189919 wgengine/router: make Linux delRoute idempotent, cidrDiff fail late as possible
This makes cidrDiff do as much as possible before failing, and makes a
delete of an already-deleted rule be a no-op. We should never do this
ourselves, but other things on the system can, and this should help us
recover a bit.

Also adds the start of root-requiring tests.

TODO: hook into wgengine/monitor and notice when routes are changed
behind our back, and invalidate our routes map and re-read from
kernel (via the ip command) at least on the next reconfig call.

Updates tailscale/corp#1338

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
(cherry picked from commit 2d96215d97)
2021-02-23 15:00:57 -08:00
..
filter wgengine/filter: add a Clone method. 2021-01-22 17:31:37 -08:00
magicsock wgengine/magicsock: fix discoEndpoint caching bug when a node key changes 2021-02-23 15:00:53 -08:00
monitor wgengine/monitor: don't log any single-IP routes added to the tailscale table. 2021-02-23 15:00:57 -08:00
netstack wgengine/netstack: use tailscale IPs instead of a hardcoded one (#1131) 2021-01-15 09:16:28 -05:00
router wgengine/router: make Linux delRoute idempotent, cidrDiff fail late as possible 2021-02-23 15:00:57 -08:00
tsdns wgengine/tsdns: skip test that requires local IPv6 when IPv6 unavailable 2021-02-16 15:07:35 -05:00
tstun wgengine/tstun: also support DropSilently on PostFilterIn 2021-01-22 13:22:32 -08:00
wglog wgengine: use Tailscale-style peer identifiers in logs 2021-01-21 19:13:32 -08:00
winnet wgengine/winnet: don't build on non-windows 2021-02-16 11:51:28 -08:00
pendopen.go wgengine: access flow pending problem with lock held 2021-02-04 11:19:54 -08:00
userspace_test.go all: convert from []wgcfg.Endpoint to string 2021-01-14 13:54:07 -08:00
userspace.go health, control/controlclient, wgengine: report when router unhealthy 2021-02-23 15:00:57 -08:00
watchdog_test.go cmd/tailscaled, wgengine/netstack: add start of gvisor userspace netstack work 2021-01-11 09:31:14 -08:00
watchdog.go wgengine/netstack: use tailscale IPs instead of a hardcoded one (#1131) 2021-01-15 09:16:28 -05:00
wgengine.go wgengine/netstack: use tailscale IPs instead of a hardcoded one (#1131) 2021-01-15 09:16:28 -05:00