wzshiming / bridge

Bridge is a multi-level proxy that supports clients and servers with multiple protocols. SSHProxy, HTTPProxy, Socks4, Socks5, Shadowsocks.
MIT License
157 stars 15 forks source link

HTTPS to SOCKS5 binding #16

Open mrniko opened 3 weeks ago

mrniko commented 3 weeks ago

Hello,

Thanks for such a great project.

Is it possible to bind a http/https proxy to a socks5 proxy? It's useful when application supports only a http/https proxy, but you have only a socks5 proxy.

wzshiming commented 3 weeks ago

Yes, it can do that

# The 1080 port can handle http/socks5/etc ... https://github.com/wzshiming/anyproxy
bridge -b :1080 -p - -p http://username:password@my_server:8080

or

# The 1080 port can handle socks5 
bridge -b socks5://0.0.0.0:1080 -p - -p http://username:password@my_server:8080