tunnelssh

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

tunnelssh

reverse tunnels ssh over websocket

Master metrics

tunnelssh master --metrics-addr :9182 serves Prometheus metrics at /metrics on that address, apart from --port so that whatever exposes the master's port does not expose them too. Without the flag none are served.

  • tunnelssh_agent_sessions: agents connected now.
  • tunnelssh_agent_connected{id}: 1 for each connected agent id.
  • tunnelssh_agent_connects_total, tunnelssh_agent_disconnects_total: sessions registered and ended, to catch an agent that flaps.
  • tunnelssh_agent_rejected_total{reason}: refused connections; duplicate_id (the id already has a session), invalid_id or handshake (the websocket upgrade or the yamux session failed).

Agents connect without authentication (whoever uses a tunnel still has to log in to the ssh behind it), so the master only takes ids of 1 to 64 characters from A-Z a-z 0-9 . _ - and answers 400 to any other. Each connected id is a series of tunnelssh_agent_connected, so anyone who can reach the master can add series: limit what a scrape may return (Prometheus' sample_limit), and keep /metrics off the public network, since it lists every agent id and has no authentication either.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
journallog
Package journallog sends logrus entries to journald over its native protocol, so each line keeps its priority and logrus fields become journal fields.
Package journallog sends logrus entries to journald over its native protocol, so each line keeps its priority and logrus fields become journal fields.
jwt
wsdial
Package wsdial dials websockets without reusing pooled HTTP connections.
Package wsdial dials websockets without reusing pooled HTTP connections.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL