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

Proxy websocket connections through socks proxy #870

Closed
Tracked by #2610 ...
justinmoon opened this issue Sep 4, 2022 · 8 comments
Closed
Tracked by #2610 ...

Proxy websocket connections through socks proxy #870

justinmoon opened this issue Sep 4, 2022 · 8 comments

Comments

@justinmoon
Copy link

I'm using your excellent crates for websocket server and client. Any tips on how to proxy client connections over tor through a socks proxy?

For example, this is how it's done with reqwest.

@niklasad1
Copy link
Member

Yeah, you are correct it's not possible currently.

For the clients I would be happy to accept PRs regarding proxy connections (not sure how difficult it's to support though...)

For the websocket server "soon enough" when #863 is merged then it would possible to define your own middleware to provide that similar to https://github.com/paritytech/jsonrpsee/blob/master/examples/examples/http_proxy_middleware.rs

@flipchan
Copy link
Contributor

@niklasad1 is socks5 proxies supported for ws connections? or is this a future feature?

@niklasad1
Copy link
Member

@flipchan

Sorry, it's not supported but it could be if we decide to accept #1162.

@elsirion
Copy link

elsirion commented Aug 6, 2023

For anyone interested, I did build a proof-of-concept for the pure socks support some time ago elsirion@8ec1b4a

But I much prefer #1162 since it's more generic and will support in-process procying with e.g. arti.

@Polkadot-Forum
Copy link

This issue has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/bringing-more-onions-into-polkadot/4358/1

@flipchan
Copy link
Contributor

@niklasad1 I created an RFP for this, as we would really think it would be useful for the Uptest project, Squeezing my thumbs that a third party dev will pick it up :)

@oleonardolima
Copy link
Contributor

@niklasad1 I created an RFP for this, as we would really think it would be useful for the Uptest project, Squeezing my thumbs that a third party dev will pick it up :)

@flipchan Thanks for mentioning it, I got curious and I'll take a look at it.

@niklasad1
Copy link
Member

Closed by #1168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants