Interest: kernel TUN overlay transport (acting as exit node / subnet router on small Linux routers)

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
linux, rust

Direzione di ricerca

This is a proposal for a kernel TUN transport as an alternative to NetstackActor, not a defined change yet. Start by reading NetstackActor and the NewOverlayTransport channels in ts_runtime, then the Config in ts_control where HostInfo.RoutableIPs would be set. Done means the maintainers have agreed on a direction and it has been split into small PRs, so wait for their reply before writing code.

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

Descrizione

#405 covers using an exit node. We built the opposite on top of tailscale-rs, for small routers where Go tailscaled gets OOM-killed (MikroTik mAP lite: MIPS 24Kc, 64 MB RAM, 16 MB flash):

  • a TunActor as an alternative to NetstackActor, using the same NewOverlayTransport channels (kernel TUN, batched reads with backpressure);
  • HostInfo.RoutableIPs sent from ts_control::Config;
  • extra inbound routes (0.0.0.0/0, ::/0) in the route updater;
  • netstack made an optional feature of ts_runtime.

The kernel does forwarding and NAT. Result on the mAP lite: ~11 Mbit/s, ~8.6 MB peak RSS, about 3 MB on flash (static musl, opt-level = "z"). Tested against a lab Headscale + derper; related fixes reported in #481, #439 and #485.

Would you be interested in this direction? If so, we could split it into small PRs following CONTRIBUTING.

AI disclosure: the code was written with an AI assistant (Claude) under human direction. It was tested on a lab tailnet and on real hardware.

Lingua principale
Rust
Stelle
1.2k
Fork
75
Merge medio
1g 13h
PR unite (30g)
22

Preparare l'ambiente

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/tailscale-rs

Tutte le issue di tailscale/tailscale-rs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.