hmgle / graftcp

A flexible tool for redirecting a given program's TCP traffic to SOCKS5 or HTTP proxy.
GNU General Public License v3.0
2.1k stars 173 forks source link

Proxy Password #19

Closed kevin-stuart closed 5 years ago

kevin-stuart commented 5 years ago

Is there a way to supply a username/password for a proxy? I did not see it documented. I tried username:password@address as proxy string. I also tried setting the SOCKS_USERNAME and SOCKS_PASSWORD environment variables.

A search for "password" yields graftcp-local/http_proxy.go, but this should not work for a socks proxy? I am also not sure how it should be set for the http proxy.

hmgle commented 5 years ago

The SOCKS5's username and password parameters are not supported now. The http proxy's username and password can be passed like this: http_proxy = http://USERNAME:PASSWORD@PROXYIP:PROXYPORT

kevin-stuart commented 5 years ago

OK, I see, thanks for the quick reply! Any plans to support SOCKS5 username/password in the future?

hmgle commented 5 years ago

Yes, I will implement it later.

kevin-stuart commented 5 years ago

Very cool. Keep up the good work!

hmgle commented 5 years ago

@kevin-stuart The SOCKS5' auth has been supported. You can set the socks5_username and socks5_password variables in the configuration file. Thank you for the feedback.