s2n-quic icon indicating copy to clipboard operation
s2n-quic copied to clipboard

Socks5 support

Open rustdesk opened this issue 1 year ago • 3 comments

Is it possible to add Socks5 proxy support?

rustdesk avatar Jan 01 '24 07:01 rustdesk

I'm not sure I follow what the ask is. You'll have to be more specific about what functionality you're looking for. Are you wanting a QUIC-based SOCKS server? Or are you wanting s2n-quic to implement the SOCKS5 client wire protocol?

camshaft avatar Jan 01 '24 14:01 camshaft

I meant the latter, hope there is an API so that we can configure socks5 proxy for the client. Sorry for the confusion.

rustdesk avatar Jan 02 '24 03:01 rustdesk

At this point we don't really have anything to support that use case. That being said, I wouldn't be opposed to adding some general functionality for constructing custom packet encapsulation headers to the library. This would need to be a new provider that is called at the beginning of every packet to write the header. This would provide flexibility for a wide variety of encapsulation methods, rather than just SOCKS5.

camshaft avatar Jan 03 '24 17:01 camshaft