tailscale/wgengine
Brad Fitzpatrick b8fb8264a5 wgengine/netstack: avoid delivering incoming packets to both netstack + host
The earlier eb06ec172f fixed
the flaky SSH issue (tailscale/corp#1725) by making sure that packets
addressed to Tailscale IPs in hybrid netstack mode weren't delivered
to netstack, but another issue remained:

All traffic handled by netstack was also potentially being handled by
the host networking stack, as the filter hook returned "Accept", which
made it keep processing. This could lead to various random racey chaos
as a function of OS/firewalls/routes/etc.

Instead, once we inject into netstack, stop our caller's packet
processing.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-05-06 06:43:16 -07:00
..
bench all: delete wgcfg.Key and wgcfg.PrivateKey 2021-04-29 14:14:34 -07:00
filter net/packet, wgengine/{filter,tstun}: add TSMP ping 2021-03-24 09:50:01 -07:00
magicsock wgenengine/magicsock: delete cursed tests 2021-05-03 11:09:44 -07:00
monitor wgengine/monitor: reduce Linux log spam on down 2021-04-12 10:38:51 -07:00
netstack wgengine/netstack: avoid delivering incoming packets to both netstack + host 2021-05-06 06:43:16 -07:00
router wgengine/router: use net.IP.Equal instead of bytes.Equal to compare IPs 2021-05-04 08:54:50 -07:00
wgcfg all: delete wgcfg.Key and wgcfg.PrivateKey 2021-04-29 14:14:34 -07:00
wglog wgengine/wglog: improve wireguard-go logging rate limiting 2021-04-30 09:45:10 -07:00
winnet wgengine/winnet: don't build on non-windows 2021-02-09 21:09:24 -08:00
pendopen.go wgengine: fix pendopen debug to not track SYN+ACKs, show Node.Online state 2021-05-05 15:25:11 -07:00
userspace_ext_test.go cmd/tailscaled, wgengine{,/netstack}: add netstack hybrid mode, add to Windows 2021-04-06 21:37:28 -07:00
userspace_test.go cmd/tailscaled, wgengine{,/netstack}: add netstack hybrid mode, add to Windows 2021-04-06 21:37:28 -07:00
userspace.go net/tsaddr: add NewContainsIPFunc (move from wgengine) 2021-05-05 13:15:50 -07:00
watchdog_test.go wgengine: extend TestWatchdog timeout on macOS 2021-03-27 09:27:11 -07:00
watchdog.go wgengine: take in dns.Config, split out to resolver.Config and dns.OSConfig. 2021-04-02 00:59:44 -07:00
wgengine.go tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType 2021-04-13 10:12:14 -07:00