基于WireGuard的VPN。免费支持最多20个节点。 https://tailscale.com/

Claus Lensbøl 63f7a400a8 wgengine/{magicsock,userspace,router}: move portupdates to the eventbus (#17423) hai 4 meses
.bencher babd163aac bencher: add config to suppress failures on benchmark regressions. %!s(int64=4) %!d(string=hai) anos
.github 7df7e01d0f tstest/integration/vms,.github/workflows: bump Ubuntu and NixOS for VM tests + cleanup (#16098) hai 5 meses
appc e0f222b686 appc,ipn/ipnlocal: receive AppConnector updates via the event bus (#17411) hai 5 meses
atomicfile 6feb3c35cb ipn/store: automatically migrate between plaintext and encrypted state (#16318) hai 8 meses
chirp 259bab9bff scripts/check_license_headers.sh: delete, rewrite as a Go test hai 8 meses
client 541a4ed5b4 all: use buildfeatures consts in a few more places hai 5 meses
clientupdate 442a3a779d feature, net/tshttpproxy: pull out support for using proxies as a feature hai 5 meses
cmd 316afe7d02 util/checkchange: stop using deephash everywhere hai 4 meses
control 541a4ed5b4 all: use buildfeatures consts in a few more places hai 5 meses
derp 7dfa26778e derp/derphttp: de-flake DERP HTTP clients tests with memnet and synctest hai 5 meses
disco 09bfee2e06 disco: add missing message types to MessageSummary (#17081) hai 5 meses
docs 0b994ef2fe docs/windows/policy: add ADMX policy definition for AllowTailscaledRestart hai 5 meses
doctor 5be6ff9b62 all: remove non-applicable "linux" deps on Android hai 10 meses
drive bbb16e4e72 drive: don't use regexp package in leaf types package hai 5 meses
envknob f42be719de all: use buildfeature constants in a few more places hai 5 meses
feature 059f53e67a feature/condlite/expvar: add expvar stub package when metrics not needed hai 5 meses
gokrazy 5eafce7e25 gokrazy/natlab: update gokrazy, wire up natlab tests to GitHub CI hai 1 ano
health 447cbdd1d0 health: make it omittable hai 5 meses
hostinfo d6fd865d41 hostinfo, ipnlocal: add optional os-specific callback for querying the hostname (#15647) hai 10 meses
internal 78af49dd1a control/ts2021: rename from internal/noiseconn in prep for controlclient split hai 5 meses
ipn eabc62a9dd ipn/ipnlocal: don't send LoginFinished unless auth was in progress (#17266) hai 4 meses
jsondb 71029cea2d all: update copyright and license headers %!s(int64=3) %!d(string=hai) anos
k8s-operator c2f37c891c all: use Go 1.20's errors.Join instead of our multierr package hai 5 meses
kube c2f37c891c all: use Go 1.20's errors.Join instead of our multierr package hai 5 meses
licenses ea8e991d69 licenses: update license notices hai 5 meses
log ce752b8a88 net/netmon: remove usage of direct callbacks from netmon (#17292) hai 5 meses
logpolicy ce752b8a88 net/netmon: remove usage of direct callbacks from netmon (#17292) hai 5 meses
logtail ce752b8a88 net/netmon: remove usage of direct callbacks from netmon (#17292) hai 5 meses
maths 820bdb870a maths: add exponentially weighted moving average type hai 1 ano
metrics 68b12a74ed metrics,syncs: add ShardedInt support to metrics.LabelMap hai 1 ano
net 316afe7d02 util/checkchange: stop using deephash everywhere hai 4 meses
omit 1ea100e2e5 cmd/tailscaled, ipn/conffile: support ec2 user-data config file hai 1 ano
packages eb6883bb5a go.mod: upgrade nfpm to v2 (#8786) %!s(int64=2) %!d(string=hai) anos
paths fbc6a9ec5a all: detect JetKVM and specialize a handful of things for it hai 7 meses
portlist 5e305032a9 portlist: add Plan 9 support hai 11 meses
posture d05e6dc09e util/syspolicy/policyclient: add policyclient.Client interface, start plumbing hai 6 meses
prober c2f37c891c all: use Go 1.20's errors.Join instead of our multierr package hai 5 meses
proxymap 9f9470fc10 ipnlocal,proxymap,wgengine/netstack: add optional WhoIs/proxymap debug hai 1 ano
release c2f37c891c all: use Go 1.20's errors.Join instead of our multierr package hai 5 meses
safesocket c45f8813b4 feature/featuretags, all: add build features, use existing ones in more places hai 5 meses
safeweb 3177e50b14 safeweb: Set Cross-Origin-Opener-Policy for browser requests (#15936) hai 10 meses
scripts 61751a0c9a scripts/installer.sh: add Siemens Industrial OS (#17185) hai 5 meses
sessionrecording c2f37c891c all: use Go 1.20's errors.Join instead of our multierr package hai 5 meses
ssh 01e645fae1 util/backoff: rename logtail/backoff package to util/backoff hai 5 meses
syncs 7cbcc10eb1 syncs: add Semaphore.Len (#16981) hai 6 meses
tailcfg 316afe7d02 util/checkchange: stop using deephash everywhere hai 4 meses
tempfork 2e381557b8 feature/c2n: move answerC2N code + deps out of control/controlclient hai 5 meses
tka e9dae5441e tka: use ts_omit_tailnetlock in another spot, for ed25519consensus hai 5 meses
tool 4bb03609bc tool/gocross: ensure child process error codes are propagated on non-Unix hai 5 meses
tsconsensus b48d2de6ab cmd/natc,tsconsensus: add cluster config admin hai 6 meses
tsconst 475b520aa2 tsconst, util/linuxfw, wgengine/router: move Linux fw consts to tsconst hai 5 meses
tsd f715ee2be9 cmd/tailscaled: start implementing ts_omit_netstack hai 5 meses
tsnet 316afe7d02 util/checkchange: stop using deephash everywhere hai 4 meses
tstest 6db8957744 tstest/integration: mark TestPeerRelayPing as flaky hai 5 meses
tstime aff8f1b358 tstime: add GoDuration which JSON serializes with time.Duration.String (#15726) hai 10 meses
tsweb 259bab9bff scripts/check_license_headers.sh: delete, rewrite as a Go test hai 8 meses
types f208bf8cb1 types/lazy: document difference from sync.OnceValue hai 5 meses
util 316afe7d02 util/checkchange: stop using deephash everywhere hai 4 meses
version 30da2e1c32 cmd/tailscale/cli: add "configure jetkvm" subcommand hai 7 meses
wf d837e0252f wf/firewall: allow link-local multicast for permitted local routes when the killswitch is on on Windows hai 1 ano
wgengine 63f7a400a8 wgengine/{magicsock,userspace,router}: move portupdates to the eventbus (#17423) hai 4 meses
words 8a4b1eb6a3 words: add some more (#17177) hai 5 meses
.gitattributes 1813c2a162 .: add .gitattributes entry to use Go hunk-header driver %!s(int64=4) %!d(string=hai) anos
.gitignore b75fe9eeca cmd/k8s-operator: Add NOTES.txt to Helm chart (#16364) hai 8 meses
.golangci.yml d8e3bce0b4 .github: Bump golangci/golangci-lint-action from 6.5.0 to 7.0.0 (#15476) hai 10 meses
ALPINE.txt bb38bf7414 docker: bump alpine v3.19 -> 3.22 (#17155) hai 5 meses
AUTHORS a8d8b8719a Move Linux client & common packages into a public repo. %!s(int64=6) %!d(string=hai) anos
CODEOWNERS 0913ec023b CODEOWNERS: add the start of an owners file %!s(int64=2) %!d(string=hai) anos
CODE_OF_CONDUCT.md 921d53904c CODE_OF_CONDUCT.md: fix duplicate entry (#16814) hai 6 meses
Dockerfile bb38bf7414 docker: bump alpine v3.19 -> 3.22 (#17155) hai 5 meses
Dockerfile.base bb38bf7414 docker: bump alpine v3.19 -> 3.22 (#17155) hai 5 meses
LICENSE 947c14793a all: update tools that manage copyright headers %!s(int64=3) %!d(string=hai) anos
Makefile 801aac59db Makefile, cmd/*/depaware.txt: split out vendor packages explicitly hai 5 meses
PATENTS a8d8b8719a Move Linux client & common packages into a public repo. %!s(int64=6) %!d(string=hai) anos
README.md 1aaa1648c4 README: update the version of Go in the README hai 5 meses
SECURITY.md e59605595e Add a SECURITY.md for vulnerability reports. %!s(int64=6) %!d(string=hai) anos
VERSION.txt 1be9c6b23e VERSION.txt: this is v1.89.0 (#17099) hai 5 meses
api.md 124ff3b034 {api.md,publicapi}: remove old API docs (#13468) hai 1 ano
assert_ts_toolchain_match.go 1005cbc1e4 tailscaleroot: panic if tailscale_go build tag but Go toolchain mismatch hai 1 ano
build_dist.sh 10cb59fa87 build_dist.sh: keep --extra-small making a usable build, add --min hai 4 meses
build_docker.sh 16e0abe031 build_docker.sh: support including extra files (#17405) hai 5 meses
flake.lock e4031daa08 .github/Makefile/flake: update nix flake support (#16636) hai 6 meses
flake.nix 801aac59db Makefile, cmd/*/depaware.txt: split out vendor packages explicitly hai 5 meses
go.mod 801aac59db Makefile, cmd/*/depaware.txt: split out vendor packages explicitly hai 5 meses
go.mod.sri 801aac59db Makefile, cmd/*/depaware.txt: split out vendor packages explicitly hai 5 meses
go.sum 801aac59db Makefile, cmd/*/depaware.txt: split out vendor packages explicitly hai 5 meses
go.toolchain.branch c5429cd49c go.toolchain.branch: bump to go1.25 (#16954) hai 6 meses
go.toolchain.rev 6f9f190f4d go.toolchain.rev: bump to Go 1.25.1 hai 5 meses
gomod_test.go aae1a28a2b go.mod: add test that replace directives aren't added in oss %!s(int64=2) %!d(string=hai) anos
header.txt 1a08ea5990 cmd/k8s-operator: operator can create subnetrouter (#9505) %!s(int64=2) %!d(string=hai) anos
license_test.go 39e35379d4 wgengine/router{,/osrouter}: split OS router implementations into subpackage hai 5 meses
pkgdoc_test.go 6bbf98bef4 all: skip looking for package comments in .git/ repository (#15384) hai 11 meses
pull-toolchain.sh 0e4f2bdd0c pull-toolchain.sh: don't run update-flake.sh %!s(int64=3) %!d(string=hai) anos
shell.nix 801aac59db Makefile, cmd/*/depaware.txt: split out vendor packages explicitly hai 5 meses
staticcheck.conf 2716250ee8 all: cleanup unused code, part 2 (#10670) %!s(int64=2) %!d(string=hai) anos
update-flake.sh 50a570a83f Code Improvements (#11311) %!s(int64=2) %!d(string=hai) anos
version-embed.go 36ea792f06 Fix various linting, vet & static check issues hai 1 ano
version_tailscale_test.go 1005cbc1e4 tailscaleroot: panic if tailscale_go build tag but Go toolchain mismatch hai 1 ano
version_test.go d7770d2b81 .github/workflows: test that ./go/tool version matches go mod version hai 8 meses

README.md

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.25. (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:

Legal

WireGuard is a registered trademark of Jason A. Donenfeld.