No description
Find a file
frozenprocess 147791366a net/tsdial: block traffic in userspace mode when exit-node is not offered
In userspace mode when an exit node is selected but stops being offered,
drop the traffic.

Fixes tailscale/corp#50584

Signed-off-by: frozenprocess <54559947+frozenprocess@users.noreply.github.com>

Change-Id: I22ccf4c1209cdb346c787851197c9b52967aab56
2026-11-28 09:36:48 -08:00
.bencher
.github .github/workflows: give golangci-lint its own Go build cache 2026-11-23 07:01:16 -08:00
appc appc,feature/conn25: build split DNS routes from the parsed config 2026-11-23 16:05:43 -05:00
atomicfile all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
chirp all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
client client/systray: shut down cleanly on termination signals (#22583) 2026-11-23 09:25:34 -06:00
clientupdate clientupdate: don't exit tailscaled when starting the Windows installer 2026-11-20 11:10:50 -08:00
cmd tsweb/promvarz, cmd/tailscaled: don't mix other metrics into filtered varz 2026-11-26 08:58:57 -08:00
control wgengine/magicsock, control/controlclient: handle node keys moving between nodeIDs 2026-11-24 12:21:24 -08:00
derp derp/derpserver: make writer flood test deterministic (#22629) 2026-11-25 11:00:30 -05:00
disco fuzz: wire fuzzing to a standalone oss-fuzz script (#20862) 2026-08-31 11:59:06 -06:00
docs util/syspolicy, docs/windows: add HideWindowedUI system policy (#22447) 2026-11-18 15:44:49 -08:00
doctor all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
drive drive/driveimpl: don't require sudo or su to share as the current user 2026-11-24 18:34:59 -08:00
envknob envknob: make Setenv update RegisterInt knobs 2026-11-27 21:30:54 -08:00
feature feature/conn25: only admit protocols the datapath can map to a transit IP (#22697) 2026-11-27 15:52:21 -07:00
fuzz k8s-operator,sessionrecording: fix SPDY protocol DoS risks (#21385) 2026-10-09 10:12:18 -06:00
gokrazy tstest/natlab/vmtest, gokrazy, cmd/tailscale/cli: add minimal-build vmtests 2026-09-30 15:53:47 -07:00
health health: hide warnables while the backend is warming up 2026-11-17 11:30:51 -08:00
hostinfo hostinfo,ssh/tailssh: don't leak systemd service env to child processes 2026-10-28 15:17:19 -07:00
internal various: add auth-exchange-attempts flag to up 2026-11-18 15:15:43 -07:00
ipn ipn/ipnlocal: properly half-close PROXY protocol forwarded connections 2026-11-25 16:44:21 -05:00
jsondb all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
k8s-operator cmd/{k8s-proxy,k8s-operator},k8s-operator: serve k8s-proxy /livez and /readyz 2026-11-23 18:20:10 +00:00
kube cmd/containerboot,kube/{certs,health}: test the /livez and /readyz checks 2026-11-19 13:17:44 +00:00
licenses licenses: update license notices 2026-11-23 15:04:11 -08:00
log log/filelogger, logpolicy: put Windows disk logs next to the log config 2026-09-24 11:52:30 -07:00
logpolicy net/dnsfallback: only resolve Tailscale's own names, and not when offline 2026-11-23 07:17:55 -08:00
logtail logtail: add support for authenticated log uploads (#20482) 2026-11-13 16:01:46 -08:00
metrics metrics: use Linux 6.2+ stat fast path for CurrentFDs 2026-09-08 18:01:59 -07:00
misc misc/git_hook/githook: don't rebuild hooks after every OSS bump 2026-11-25 08:54:24 -08:00
net net/tsdial: block traffic in userspace mode when exit-node is not offered 2026-11-28 09:36:48 -08:00
omit all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
packages/deb all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
paths cmd/tailscaled, safesocket: add --windows-mode=dev 2026-09-28 13:26:52 -07:00
portlist portlist: exercise Linux discovery backends with real sockets 2026-09-14 19:16:36 -07:00
posture posture: add HealthTracker for serial number retrieval (#19181) 2026-04-25 15:42:47 -03:00
prober prober: deflake TestHTTPBandwidth on coarse-clock machines 2026-11-15 07:58:54 -08:00
proxymap all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
release tool,release/dist: remove yarn (#22469) 2026-11-18 08:03:27 -07:00
safesocket cmd/tailscaled, safesocket: add --windows-mode=dev 2026-09-28 13:26:52 -07:00
safeweb all: don't repeat the the word "the" unnecessarily 2026-06-18 16:32:08 +01:00
scripts scripts/installer.sh: add Omarchy as an Arch derivative 2026-09-22 13:53:57 -07:00
sessionrecording sessionrecording: close idle connections after upload 2026-06-19 13:42:14 +01:00
ssh/tailssh ssh/tailssh: write watchdog test PID markers atomically 2026-11-23 08:54:18 -08:00
syncs cmd/vet: add subtestnames analyzer; fix all existing violations 2026-04-05 15:52:51 -07:00
tailcfg ipn: configure hybrid handshakes for peers that support it 2026-11-17 13:27:24 -07:00
tempfork go.mod: bump 5 modules 2026-11-16 18:55:09 -08:00
tka tka: test that ValidateDeeplink rejects each missing parameter 2026-11-18 10:00:31 +00:00
tool tool,release/dist: remove yarn (#22469) 2026-11-18 08:03:27 -07:00
tsconsensus all: migrate code off Notify.NetMap to Notify.SelfChange 2026-05-01 06:51:40 -07:00
tsconst net/{netmon,tstun},tsconst: avoid enumerating all interfaces when retrieving the default 2026-11-07 12:29:01 -08:00
tsd ipn/ipnlocal,tsd: add NoiseRoundTripper to tsd.Sys 2026-05-13 14:56:28 -07:00
tsnet tsnet: test with a fake host DNS resolver, not the OS resolver (#22635) 2026-11-24 13:34:05 -08:00
tstest tsnet: add Server.Tailnet to require a tailnet 2026-11-24 12:04:53 -08:00
tstime tstime: fold fractional ParseDuration cases into TestParseDuration 2026-11-12 09:18:45 +00:00
tsweb tsweb/promvarz, cmd/tailscaled: don't mix other metrics into filtered varz 2026-11-26 08:58:57 -08:00
types util/pipetcp: add reusable TCP proxying functionality 2026-11-24 15:08:07 -05:00
util util/pipetcp: add reusable TCP proxying functionality 2026-11-24 15:08:07 -05:00
version version/mkversion: don't use os.DevNull for git config in tests 2026-10-09 08:10:57 -07:00
wf wf: allow limited broadcast to/from permitted interfaces when using an exit node on Windows 2026-01-23 18:30:38 -06:00
wgengine wgengine/netstack: fix invocation of ping on illumos/solaris 2026-11-26 08:29:27 -08:00
wif wif: add identity token auto generation for Azure (#21808) 2026-11-23 17:51:43 +00:00
words words: add a missing scale 2026-10-22 10:52:43 -04:00
.gitattributes .gitattributes: explicitly mark text files as such with eol 2026-06-23 13:04:07 -07:00
.gitignore cmd/fbstatus: add framebuffer status display for the Tailscale appliance 2026-07-02 09:24:01 -07:00
.golangci.yml .golangci.yml: enforce gliderssh import alias via importas linter 2026-04-07 11:59:38 +01:00
.policy-tests.yml .github,.policy-tests.yml: test .policy.yml in CI 2026-06-26 15:55:15 -07:00
.policy.yml .policy.yml: tweak policy after testing 2026-06-26 12:28:02 -07:00
.stignore Add .stignore for syncthing (#18540) 2026-01-27 16:15:17 -08:00
ALPINE.txt docker: bump alpine v3.19 -> 3.22 (#17155) 2025-09-17 20:22:24 +01:00
api.md {api.md,publicapi}: remove old API docs (#13468) 2024-09-13 14:10:33 -06:00
assert_ts_toolchain_match.go .: permit running binary built with TS_GO_NEXT=1 2026-02-23 09:37:04 -08:00
build_dist.sh tstest/natlab/vmtest, gokrazy, cmd/tailscale/cli: add minimal-build vmtests 2026-09-30 15:53:47 -07:00
build_docker.sh go.mod,build_docker.sh: support setting --output for mkctr (#21692) 2026-10-08 10:04:24 +01:00
cache_key_test.go util/cibuild, cache_key_test: skip TestTsgoRevInCacheKey outside Tailscale CI 2026-05-14 15:55:05 -07:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md: update code of conduct 2025-10-28 08:58:00 -07:00
CODEOWNERS CODEOWNERS,.policy.yml: replace CODEOWNERS with a policy-bot policy 2026-06-26 10:30:59 -07:00
Dockerfile Dockerfile: use our own Go toolchain, not the golang Docker image 2026-09-01 15:47:33 -07:00
Dockerfile.base all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
flake.lock flake.nix: update for go 1.27 2026-08-28 12:47:04 -07:00
flake.nix go.mod: bump 5 modules 2026-11-22 21:39:11 -08:00
flakehashes.json go.mod: bump 5 modules 2026-11-22 21:39:11 -08:00
go.mod go.mod: bump 5 modules 2026-11-22 21:39:11 -08:00
go.sum go.mod: bump 5 modules 2026-11-22 21:39:11 -08:00
go.toolchain.branch go.toolchain.branch: switch to Go 1.27 2026-08-27 09:52:15 -07:00
go.toolchain.next.branch go.toolchain.next.{branch,rev}: start testing Go 1.27 (go1.27rc2) 2026-07-31 07:38:38 -07:00
go.toolchain.next.rev go.toolchain.rev: bump Go toolchain 2026-11-18 13:13:15 -08:00
go.toolchain.rev go.toolchain.rev: bump Go toolchain 2026-11-18 13:13:15 -08:00
go.toolchain.version go.toolchain.rev: bump Go toolchain 2026-11-10 18:14:49 -08:00
gomod_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
header.txt all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
LICENSE all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
license_test.go root: make TestLicenseHeaders skip files unknown to git 2026-08-04 10:47:35 +01:00
Makefile ssh/tailssh, tstest/natlab/vmtest: expand Tailscale SSH test coverage 2026-11-20 12:44:01 -08:00
PATENTS
pkgdoc_test.go cmd/vet/lowerell, drive/driveimpl: forbid variables named "l" or "I" 2026-05-04 14:03:28 -07:00
pull-toolchain.sh tool/updateflakes, cmd/nardump: replace update-flake.sh with Go tool 2026-04-28 10:18:32 -07:00
README.md go.toolchain.branch: switch to Go 1.27 2026-08-27 09:52:15 -07:00
SECURITY.md
shell.nix go.mod: bump 5 modules 2026-11-22 21:39:11 -08:00
staticcheck.conf staticcheck.conf: enable ST1000 to check package docs (#20787) 2026-08-08 13:02:06 -07:00
version-embed.go cmd/printdep: add --next flag to use rc Go build hash instead 2026-01-27 14:49:56 -08:00
VERSION.txt VERSION.txt: this is v1.107.0 (#22612) 2026-11-23 13:59:45 -08:00
version_tailscale_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
version_test.go Dockerfile: use our own Go toolchain, not the golang Docker image 2026-09-01 15:47:33 -07:00

Tailscale

https://tailscale.com

Private WireGuard® networks made easy

Overview

This repository contains the majority of Tailscale's open source code. Notably, it includes the tailscaled daemon and the tailscale CLI tool. The tailscaled daemon runs on Linux, Windows, macOS, and to varying degrees on FreeBSD and OpenBSD. The Tailscale iOS and Android apps use this repo's code, but this repo doesn't contain the mobile GUI code.

Other Tailscale repos of note:

For background on which parts of Tailscale are open source and why, see https://tailscale.com/opensource/.

Using

We serve packages for a variety of distros and platforms at https://pkgs.tailscale.com.

Other clients

The macOS, iOS, and Windows clients use the code in this repository but additionally include small GUI wrappers. The GUI wrappers on non-open source platforms are themselves not open source.

Building

We always require the latest Go release, currently Go 1.27. (While we build releases with our Go fork, its use is not required.)

go install tailscale.com/cmd/tailscale{,d}

If you're packaging Tailscale for distribution, use build_dist.sh instead, to burn commit IDs and version info into the binaries:

./build_dist.sh tailscale.com/cmd/tailscale
./build_dist.sh tailscale.com/cmd/tailscaled

If your distro has conventions that preclude the use of build_dist.sh, please do the equivalent of what it does in your distro's way, so that bug reports contain useful version information.

Bugs

Please file any issues about this code or the hosted service on the issue tracker.

Contributing

PRs welcome! But please file bugs. Commit messages should reference bugs.

We require Developer Certificate of Origin Signed-off-by lines in commits.

See commit-messages.md (or skim git log) for our commit message style.

About Us

Tailscale is primarily developed by the people at https://github.com/orgs/tailscale/people. For other contributors, see:

WireGuard is a registered trademark of Jason A. Donenfeld.