Disguise QUIC handshake as HTTP/3 - #28
Merged
Merged
Conversation
Two changes that make the client's QUIC ClientHello blend in with real
HTTP/3 traffic instead of fingerprinting the protocol:
- ALPN switched from `hq-29` (a long-deprecated QUIC draft identifier)
to `h3` (RFC 9114 HTTP/3). We still tunnel arbitrary streams; only the
ALPN advertisement changes.
- Default SNI now reuses the host string the user passed on the CLI
(e.g. `example.com` from `example.com:8080`) instead of a hard-coded
`rusnel` placeholder. For IP literals rustls suppresses the SNI
extension per RFC 6066 §3, matching real client behavior.
`--tls-server-name` still wins when set. As a side benefit, `--tls-ca`
/ `--tls-mtls` modes now work without `--tls-server-name` when the
cert's SAN matches the connect hostname.
Plumbed via a new `ServerEndpoint { addr, host }` struct that preserves
the original host alongside the resolved `SocketAddr`.
Made-with: Cursor
Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two changes that make the client's QUIC ClientHello blend in with real HTTP/3 traffic instead of fingerprinting the protocol:
hq-29(a long-deprecated QUIC draft identifier) toh3(RFC 9114 HTTP/3). We still tunnel arbitrary streams; only the ALPN advertisement changes.example.comfromexample.com:8080) instead of a hard-codedrusnelplaceholder. For IP literals rustls suppresses the SNI extension per RFC 6066 §3, matching real client behavior.--tls-server-namestill wins when set. As a side benefit,--tls-ca/--tls-mtlsmodes now work without--tls-server-namewhen the cert's SAN matches the connect hostname.Plumbed via a new
ServerEndpoint { addr, host }struct that preserves the original host alongside the resolvedSocketAddr.