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/cmd
Andrew Dunham 0cc397e96d cmd/derper, net/netcheck: add challenge/response to generate_204 endpoint
The Lufthansa in-flight wifi generates a synthetic 204 response to the
DERP server's /generate_204 endpoint. This PR adds a basic
challenge/response to the endpoint; something sufficiently complicated
that it's unlikely to be implemented by a captive portal. We can then
check for the expected response to verify whether we're being MITM'd.

Follow-up to #5601

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I94a68c9a16a7be7290200eea6a549b64f02ff48f
(cherry picked from commit 223126fe5b)
2 years ago
..
addlicense cmd/addlicense: add command to add licenseheaders to generated code 3 years ago
cloner cmd/{cloner,viewer}: add support for map values with pointers 2 years ago
derper cmd/derper, net/netcheck: add challenge/response to generate_204 endpoint 2 years ago
derpprobe net/stun: convert to use net/netip.AddrPort 2 years ago
gitops-pusher cmd/gitops-pusher: standardize hujson before posting to validate (#5525) 2 years ago
hello refactor: move from io/ioutil to io and os packages 2 years ago
mkpkg cmd/mkpkg: use package flag (#4373) 3 years ago
nginx-auth cmd/nginx-auth/nginx-auth: update auth to allow for new domains 2 years ago
pgproxy cmd/pgproxy: link to blog post at the top. 2 years ago
printdep Docker: add ALPINE.txt to manage alpine versions 2 years ago
proxy-to-grafana all: gofmt for Go 1.19 2 years ago
speedtest net/speedtest: retune to meet iperf on localhost in a VM 2 years ago
ssh-auth-none-demo cmd/ssh-auth-none-demo: add demo SSH server that acts like Tailscale SSH 2 years ago
tailscale net/wsconn: add back custom wrapper for turning a websocket.Conn into a net.Conn 2 years ago
tailscaled net/wsconn: add back custom wrapper for turning a websocket.Conn into a net.Conn 2 years ago
testcontrol all: use any instead of interface{} 3 years ago
tsconnect cmd/tsconnect: close the SSH session an unload event instead of beforeunload 2 years ago
tsshd cmd/tsshd: add a package line to appease gofmt 2 years ago
viewer all: fix spelling mistakes 2 years ago