Support OpenSSH TCP and Unix socket forwarding in the built-in SSH server

Aperta
#158 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start with tailcat_ssh.go, which the issue identifies as registering only the session channel handler, and inspect how the built-in SSH server handles channels and requests. The requested work covers TCP and Unix-socket forwarding, listener and destination restrictions, and tests for -L, -R, -D, and socket forwarding; done means those behaviors are supported and tested.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

Tailcat's built-in SSH server only registers the session channel handler, with an empty RequestHandlers map:

https://github.com/tailscale/tailcat/blob/main/tailcat_ssh.go

This means standard OpenSSH forwarding is unsupported:

  • Local TCP forwarding (ssh -L) and dynamic forwarding (ssh -D): direct-tcpip
  • Remote TCP forwarding (ssh -R): tcpip-forward, cancel-tcpip-forward, forwarded-tcpip
  • Unix-domain socket forwarding: OpenSSH [email protected], [email protected], and corresponding forwarded/cancel operations

These features are important for SSH-based remote development clients, including those that use port or socket forwarding alongside an interactive terminal.

Requested behavior

Please consider optional support for OpenSSH TCP and Unix-domain socket forwarding in the built-in SSH server, with appropriate listener/destination restrictions and tests for ssh -L, -R, -D and socket forwarding.

Related issues

  • #14: Tailcat transport-level TCP forwarding, rather than SSH protocol channels
  • #93: Tailcat transport-level Unix socket serving, rather than SSH protocol forwarding

Using an existing OpenSSH daemon behind a Tailcat tunnel is a workaround, but requires a separately managed SSH server.

Lingua principale
Go
Stelle
8.8k
Fork
404
Merge medio
3h 48m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tailscale/tailcat

Tutte le issue di tailscale/tailcat

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.