rosahaj/tlsproxy

Support upstream proxy authentication

Opened this issue · 2 comments

Hi rosahaj,
First, thanks much for making this project!

I tried to test a bit and one thing that's quite needed is the ability to specify a user/pass to the upstream proxy via the x-tlsproxy-upstream header. The reason is that most commercial proxy services take authentication and other parameters via the username.
So, a typical upstream proxy request can look like:
socks5h://user-myproxyusername-country-us-city-nashville-session-284238249-sessionduration-30:myproxypass@pro.proxyvendor.com:7000

Another (unrelated) thing: it would be great if you could add a reference to the valid clients list. It took me a while to figure out the convention of [client_name]-[client_version] given that other project (like https://github.com/LyleMi/ja3proxy) are taking them as different params.

Thanks again!

I tried to test a bit and one thing that's quite needed is the ability to specify a user/pass to the upstream proxy via the x-tlsproxy-upstream header. The reason is that most commercial proxy services take authentication and other parameters via the username. So, a typical upstream proxy request can look like: socks5h://user-myproxyusername-country-us-city-nashville-session-284238249-sessionduration-30:myproxypass@pro.proxyvendor.com:7000

socks5 proxy URLs with authentication should already be supported by the underlying FromURL function (see Go source code). Have you already tried using a socks5 connection string with username and password?

Another (unrelated) thing: it would be great if you could add a reference to the valid clients list. It took me a while to figure out the convention of [client_name]-[client_version] given that other project (like https://github.com/LyleMi/ja3proxy) are taking them as different params.

That's a good point, the README currently isn't clear on this. I'll look into it once I have time.