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

Support upstream proxy authentication #2

Open
atyachin opened this issue Jan 24, 2024 · 2 comments
Open

Support upstream proxy authentication #2

atyachin opened this issue Jan 24, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@atyachin
Copy link

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!

@PandaWorker
Copy link

@rosahaj
Copy link
Owner

rosahaj commented Feb 2, 2024

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.

@rosahaj rosahaj added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants