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/ipn
Brad Fitzpatrick bd90781b34 ipn/ipnlocal, wgengine/netstack: use netstack for peerapi server
We're finding a bunch of host operating systems/firewalls interact poorly
with peerapi. We either get ICMP errors from the host or users need to run
commands to allow the peerapi port:

https://github.com/tailscale/tailscale/issues/3842#issuecomment-1025133727

... even though the peerapi should be an internal implementation detail.

Rather than fight the host OS & firewalls, this change handles the
server side of peerapi entirely in netstack (except on iOS), so it
never makes its way to the host OS where it might be messed with. Two
main downsides are:

1) netstack isn't as fast, but we don't really need speed for peerapi.
   And actually, with fewer trips to/from the kernel, we might
   actually make up for some of the netstack performance loss by
   staying in userspace.

2) tcpdump / Wireshark etc packet captures will no longer see the peerapi
   traffic. Oh well. Crawshaw's been wanting to add packet capture server
   support to tailscaled, so we'll probably do that sooner now.

A future change might also then use peerapi for the client-side
(except on iOS).

Updates #3842 (probably fixes, as well as many exit node issues I bet)

Change-Id: Ibc25edbb895dc083d1f07bd3cab614134705aa39
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
4 years ago
..
ipnlocal ipn/ipnlocal, wgengine/netstack: use netstack for peerapi server 4 years ago
ipnserver ipn/ipnserver: add TS_PERMIT_CERT_UID envknob to give webservers cert access 4 years ago
ipnstate ipn/ipnstate: add TailnetName to status 4 years ago
localapi ipn/ipnserver: add TS_PERMIT_CERT_UID envknob to give webservers cert access 4 years ago
policy ipn/policy: treat DNS service as interesting so it's not filtered out 4 years ago
store/aws ipn/store/aws: support using sub-paths in parameters 4 years ago
backend.go ipn: use key.NodePublic instead of tailcfg.NodeKey 4 years ago
doc.go Move Linux client & common packages into a public repo. 6 years ago
fake_test.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 5 years ago
handle.go ipn: another controlplane synonym 5 years ago
message.go ipn: don't log IPN messages that may contain an authkey. 4 years ago
message_test.go ipn: allow b to be nil in NewBackendServer 5 years ago
prefs.go wgengine/netstack: add an SSH server experiment 4 years ago
prefs_clone.go wgengine/netstack: add an SSH server experiment 4 years ago
prefs_test.go wgengine/netstack: add an SSH server experiment 4 years ago
store.go ipn: remove mention of wgkey in comment. 4 years ago
store_test.go ipn: test TestFileStore in a fresh subdirectory 4 years ago