jackline icon indicating copy to clipboard operation
jackline copied to clipboard

Socks5 proxy support

Open cfcs opened this issue 10 years ago • 6 comments

Someone mentioned they'd want this feature for when using Tor. I'll try to add it when I get some time.

cfcs avatar Oct 03 '15 14:10 cfcs

socks4a should be all we need, shouldn't it? (much simpler than user + auth overhead of socks5)

hannesm avatar Oct 03 '15 14:10 hannesm

also someone reported torify (or torsocks and tor-resolv) work fine with jackline (but I agree that a socks implementation would be great!)

hannesm avatar Oct 03 '15 14:10 hannesm

Socks5 is more comonly used, isn't it?

sternenseemann avatar Oct 03 '15 15:10 sternenseemann

Socks4a will likely be fine for most user, however SOCKSv5 can be used by Tor to isolate circuits belonging to different contexts. I feel that is a nice enough feature that it would make sense to allow either a random username/password or a user-specified set to separate the traffic of two instances of Jackline going through the same Tor client. See the IsolateSOCKSAuth argument to the SOCKSPort setting.

cfcs avatar Oct 03 '15 16:10 cfcs

sounds good to me. I'd suggest to start with a socks library (at least client side); and afterwards finding an interface which unifies lwt sockets and socks, maybe (parts of) conduit come in handy..

hannesm avatar Oct 03 '15 16:10 hannesm

Yes, let's keep this open until someone gets around to doing it :)

cfcs avatar Oct 03 '15 16:10 cfcs