cloudflare / cloudflare/cloudflared
Add support for haproxy proxy protocol
- Vorherrschende Sprache
- Go
- Sterne
- 15.6k
- Forks
- 1.4k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Currently all ssh connections are from from localhost, and the original client address is not available to sshd.
The HAProxy proxy protocol allows the client address to be preserved for non-http connections like ssh.
tunnel origin request configuration should have an option to send a proxy header at the start of the connection. This would allow client address to be restored via [mmproxy](https://github.com/cloudflare/mmproxy).
Note this is already supported by spectrum (https://developers.cloudflare.com/spectrum/proxy-protocol).
Beitragsleitfaden
Rechercherichtung
Beginne damit, die Konfiguration der Origin-Anfrage des Tunnels und den Verbindungsaufbau nachzuverfolgen, um herauszufinden, wo eine Option einen anfänglichen Proxy-Header steuern könnte. Bestätige das erwartete Verhalten des HAProxy-Proxy-Protokolls und wie mmproxy die Client-Adresse wiederherstellt. Als erledigt gilt, wenn die Konfiguration den Header für Nicht-HTTP-Verbindungen aktivieren kann, ohne das Standardverhalten zu ändern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go
- Bereich
- networking
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100