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.
 
 
 
 
 
 
Go to file
Joe Tsai d9df023e6f
net/connstats: enforce maximum number of connections (#6760)
The Tailscale logging service has a hard limit on the maximum
log message size that can be accepted.
We want to ensure that netlog messages never exceed
this limit otherwise a client cannot transmit logs.

Move the goroutine for periodically dumping netlog messages
from wgengine/netlog to net/connstats.
This allows net/connstats to manage when it dumps messages,
either based on time or by size.

Updates tailscale/corp#8427

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2 years ago
.bencher
.github feat(build): add support on Loongnix-Server (loong64) (#6233) 2 years ago
atomicfile
chirp
client/tailscale client/tailscale: fix request object for key creation. 2 years ago
cmd go.mod: bump dhcp dep to remove another endian package from our tree 2 years ago
control types/ptr: move all the ptrTo funcs to one new package's ptr.To 2 years ago
derp derp: prevent concurrent access to multiForwarder map 2 years ago
disco all: use strs.CutPrefix and strs.CutSuffix more 2 years ago
docs docs/webhooks: use subtle.ConstantTimeCompare for comparing signatures 2 years ago
doctor
envknob safesocket: remove the IPN protocol support 2 years ago
health health, ipn/ipnlocal: when -no-logs-no-support is enabled, deny access to tailnets that have network logging enabled 2 years ago
hostinfo types/ptr: move all the ptrTo funcs to one new package's ptr.To 2 years ago
internal/tooldeps
ipn ipn/ipnserver: propagate http.Serve error 2 years ago
jsondb
kube
licenses licenses: update tailscale{,d} licenses 2 years ago
log
logpolicy
logtail types/logid: move logtail ID types here (#6336) 2 years ago
metrics
net net/connstats: enforce maximum number of connections (#6760) 2 years ago
packages/deb
paths paths: set QNAP socket to /tmp. 2 years ago
portlist
prober
safesocket all: use named pipes on windows 2 years ago
scripts
smallzstd
ssh/tailssh ssh/tailssh: add envknob for default PATH 2 years ago
syncs
tailcfg ipn/ipnlocal,tailcfg: introduce capability to gate TKA init paths 2 years ago
tempfork
tka cmd/tailscale,ipn: store disallowed TKA's in prefs, lock local-disable 2 years ago
tool
tsconst
tsnet all: update golang.zx2c4.com/wireguard to github.com/tailscale/wireguard-go (#6692) 2 years ago
tstest all: update golang.zx2c4.com/wireguard to github.com/tailscale/wireguard-go (#6692) 2 years ago
tstime
tsweb
types net/connstats: enforce maximum number of connections (#6760) 2 years ago
util util/multierr: optimize New for nil cases (#6750) 2 years ago
version paths, version/distro: detect Synology DSM version better, use for socket path 2 years ago
wf
wgengine net/connstats: enforce maximum number of connections (#6760) 2 years ago
words words: hybrid theory (#6404) 2 years ago
.gitattributes
.gitignore gitignore: ignore direnv nix-shell environment cache (#6520) 2 years ago
ALPINE.txt
AUTHORS
CODE_OF_CONDUCT.md
Dockerfile
Dockerfile.base
LICENSE
Makefile Makefile: add a target for doing dev builds of the k8s operator. 2 years ago
PATENTS
README.md README.md: add commit message style bit 2 years ago
SECURITY.md
VERSION.txt VERSION.txt: this is v1.35.0 2 years ago
api.md api.md: change "admin panel" to "admin console" 2 years ago
build_dist.sh
build_docker.sh Makefile: add a target for doing dev builds of the k8s operator. 2 years ago
go.mod go.mod: bump dhcp dep to remove another endian package from our tree 2 years ago
go.sum go.mod: bump dhcp dep to remove another endian package from our tree 2 years ago
go.toolchain.branch
go.toolchain.rev
pull-toolchain.sh
shell.nix
staticcheck.conf
version-embed.go
version_test.go

README.md

Tailscale

https://tailscale.com

Private WireGuard® networks made easy

Overview

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

The Android app is at https://github.com/tailscale/tailscale-android

The Synology package is at https://github.com/tailscale/tailscale-synology

Using

We serve packages for a variety of distros 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 that are not open source.

Building

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.

We require the latest Go release, currently Go 1.19.

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 git log for our commit message style. It's basically the same as Go's 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.