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/router
Brad Fitzpatrick 2d96215d97 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>
4 years ago
..
dns wgengine/router/dns: remove unused code 4 years ago
ifconfig_windows.go wgengine/router: stop setPrivateNetwork goroutine on configureInterface failure 4 years ago
ifconfig_windows_test.go wgengine/router: unfork winipcfg-go package, use upstream 4 years ago
router.go ipn: split LocalBackend off into new ipn/ipnlocal package 4 years ago
router_darwin.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
router_default.go Remove tuntap references. We only use TUN. 4 years ago
router_fake.go all: annotate log verbosity levels on most egregiously spammy log prints 4 years ago
router_freebsd.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
router_linux.go wgengine/router: make Linux delRoute idempotent, cidrDiff fail late as possible 4 years ago
router_linux_test.go wgengine/router: make Linux delRoute idempotent, cidrDiff fail late as possible 4 years ago
router_openbsd.go all: replace wgcfg.IP and wgcfg.CIDR with netaddr types 4 years ago
router_userspace_bsd.go wgengine/router: fix BSD router to support multiple local addrs, IPv6 4 years ago
router_windows.go wgengine/router: add another Windows firewall rule to allow incoming UDP 4 years ago
runner.go wgengine/router: set up basic IPv6 routing/firewalling. 4 years ago