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
Denton Gentry 24d41e4ae7 cmd/sniproxy: add port forwarding and prometheus metrics
1. Add TCP port forwarding.
   For example: ./sniproxy -forwards=tcp/22/github.com
   will forward SSH to github.

   % ssh -i ~/.ssh/id_ecdsa.pem -T git@github.com
   Hi GitHubUser! You've successfully authenticated, but GitHub does not
   provide shell access.

   % ssh -i ~/.ssh/id_ecdsa.pem -T git@100.65.x.y
   Hi GitHubUser! You've successfully authenticated, but GitHub does not
   provide shell access.

2. Additionally export clientmetrics as prometheus metrics for local
   scraping over the tailnet: http://sniproxy-hostname:8080/debug/varz

Updates https://github.com/tailscale/tailscale/issues/1748

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2 years ago
..
addlicense all: update tools that manage copyright headers 3 years ago
cloner cmd/cloner: use maps.Clone and ptr.To 2 years ago
containerboot cmd/containerboot: reapply known args on restart 2 years ago
derper util/winutil: add RegisterForRestart, allowing programs to indicate their preferences to the Windows restart manager 2 years ago
derpprobe prober: migrate to Prometheus metric library 3 years ago
dist cmd/dist,release/dist: add distsign signing hooks (#9070) 2 years ago
get-authkey all: use cmpx.Or where it made sense 3 years ago
gitops-pusher cmd/gitops-pusher: re-use existing types from acl package 2 years ago
hello all: update copyright and license headers 3 years ago
k8s-operator all: adjust some build tags for plan9 2 years ago
mkmanifest cmd/mkmanifest, cmd/tailscale, cmd/tailscaled: remove Windows arm32 resources from OSS 3 years ago
mkpkg go.mod: upgrade nfpm to v2 (#8786) 2 years ago
mkversion version/mkversion: open-source version generation logic 3 years ago
nardump all: update copyright and license headers 3 years ago
netlogfmt all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
nginx-auth tailcfg,all: add and use Node.IsTagged() 3 years ago
pgproxy various: add golangci-lint, fix issues (#7905) 3 years ago
printdep cmd/printdep: print correct toolchain URL 3 years ago
proxy-to-grafana tailcfg,all: add and use Node.IsTagged() 3 years ago
sniproxy cmd/sniproxy: add port forwarding and prometheus metrics 2 years ago
speedtest all: update copyright and license headers 3 years ago
ssh-auth-none-demo all: replace deprecated ioutil references 2 years ago
stunc all: update copyright and license headers 3 years ago
sync-containers all: adjust some build tags for plan9 2 years ago
tailscale client/web: add self node cache 2 years ago
tailscaled all: adjust some build tags for plan9 2 years ago
testcontrol all: update copyright and license headers 3 years ago
testwrapper cmd/testwrapper: fix off-by-one error in maxAttempts check 2 years ago
tsconnect all: adjust some build tags for plan9 2 years ago
tsshd all: update copyright and license headers 3 years ago
viewer types/views,cmd/viewer: add ByteSlice[T] to replace mem.RO 2 years ago