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

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

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.