Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shadow-tls implementation #321

Closed
VendettaReborn opened this issue Mar 15, 2024 · 4 comments
Closed

shadow-tls implementation #321

VendettaReborn opened this issue Mar 15, 2024 · 4 comments
Assignees
Labels
core enhancement New feature or request

Comments

@VendettaReborn
Copy link
Contributor

Motivation

The shadow-tls protocol may be one of safest protocol now? (I've used the shadow-tls-v3 for a long time, it's pretty stable)

Current implementation in other repos

Status quo:

  • in golang, the shadowtls client use the utls to hack the client hello packet
  • in rust, since the TLS is rely on rustls, the monoio & tokio version of client both modify the rustls and change some code in the process of building client hello

what we need to do

  1. fork a rustls & tokio-rustls, do some changes similar to shadow-tls-tokio-client
  2. patch the Cargo.toml
  3. add shadowtls's option in the shadowsocks's plugin
  4. reuse the code of shadow-tls-tokio-client

I had fully implement this protocol in my local environment and had it fully tested, however, i don't know what's the best way to handle the dependency of the hacked rustls & tokio-rustls: should i maintain the code by myself, or should we create a organization, and move the forked repos(rust-tun, netstack-lwip .etc ) to it?

@ibigbug
Copy link
Member

ibigbug commented Mar 15, 2024

interesting. there's also discussions about this topic here refraction-networking/utls#103

@ibigbug
Copy link
Member

ibigbug commented Mar 15, 2024

handle the dependency of the hacked
clash-rs is under an org account - https://github.com/Watfaq

if you don't mind, you can put the forked repo under this org.

@ibigbug ibigbug added enhancement New feature or request core labels Mar 15, 2024
@VendettaReborn
Copy link
Contributor Author

handle the dependency of the hacked
clash-rs is under an org account - https://github.com/Watfaq

if you don't mind, you can put the forked repo under this org.

Got it

@VendettaReborn
Copy link
Contributor Author

interesting. there's also discussions about this topic here refraction-networking/utls#103

Yep, it's similar to the patch mentioned in this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants