Bridge: optional PROXY v1 line upstream, and a TLS mode for bridgecheck #3

Merged
paulhitt merged 2 commits from bridge/proxy-protocol into main 2026-10-14 14:56:31 +00:00
paulhitt commented 2026-10-07 17:54:00 +00:00 (Migrated from gitlab.com)

FN_OBFS4_PROXY_PROTOCOL=1 makes the bridge send a PROXY protocol v1 line with the client's address before the client's bytes, so an edge proxy that trusts only the bridge sees each client's own address. Off by default. bridgecheck gains -tls, which does what the apps do: TLS to the relay's hostname through the tunnel.

Why: the deployed bridge forwarded to the relay's plain HTTP port. A plain-HTTP check passed while TLS through it was cut off, so no app session ever completed.

Already deployed on the box (2026-10-07) and verified: lyrebird client, TLS to relay.flamenet.io through the live bridge, HTTP 200; Traefik logs the real client address. ProxyProtocolTests: 5 pass.

🤖 Generated with Claude Code

FN_OBFS4_PROXY_PROTOCOL=1 makes the bridge send a PROXY protocol v1 line with the client's address before the client's bytes, so an edge proxy that trusts only the bridge sees each client's own address. Off by default. bridgecheck gains -tls, which does what the apps do: TLS to the relay's hostname through the tunnel. Why: the deployed bridge forwarded to the relay's plain HTTP port. A plain-HTTP check passed while TLS through it was cut off, so no app session ever completed. Already deployed on the box (2026-10-07) and verified: lyrebird client, TLS to relay.flamenet.io through the live bridge, HTTP 200; Traefik logs the real client address. ProxyProtocolTests: 5 pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
paulhitt (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2026-10-07 17:54:11 +00:00
paulhitt commented 2026-10-07 18:36:36 +00:00 (Migrated from gitlab.com)

aborted the automatic merge because the source branch was updated. Learn more.

aborted the automatic merge because the source branch was updated. [Learn more](https://gitlab.com/help/ci/pipelines/merge_trains.md#merge-request-dropped-from-the-merge-train).
paulhitt commented 2026-10-07 18:36:36 +00:00 (Migrated from gitlab.com)

added 1 commit

  • 91bc5684 - CI: expect 78 tests now that ProxyProtocolTests adds five

Compare with previous version

added 1 commit <ul><li>91bc5684 - CI: expect 78 tests now that ProxyProtocolTests adds five</li></ul> [Compare with previous version](/extant2000/flamenet-elligator2/-/merge_requests/3/diffs?diff_id=2084911634&start_sha=bd907b1248a34d61e8cc6cf0486076a7b6d51847)
extant2000git merged commit 639fc927e9 into main 2026-10-14 14:56:31 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: extant2000/flamenet-elligator2#3