go-shadowsocks2 icon indicating copy to clipboard operation
go-shadowsocks2 copied to clipboard

Feature Request: HTTP proxy

Open targence opened this issue 7 years ago • 17 comments

Hi! Please add ability run SOCK and HTTP proxy at the same time.

targence avatar Mar 29 '17 00:03 targence

Any idea why? This project is under the umbrella shadowsocks, so HTTP proxy is kinda beyond the scope.

riobard avatar Apr 09 '17 07:04 riobard

Hi

HTTP proxy is needed on client side, because not all apps support SOCKS. If we are talking about apps in terminal, there almost no apps which supports SOCKS. I use command line apps for development a lot.

I use ShadowsocksX-NG as client. https://github.com/shadowsocks/ShadowsocksX-NG There is option HTTP proxy , it's very handy.

screen shot 2017-04-11 at 11 09 05 am

So I think it's not beyond the scope at all. HTTP proxy on client side is needed if you want to use not only browser.

daciwei avatar Apr 11 '17 08:04 daciwei

If we are talking about apps in terminal, there almost no apps which supports SOCKS.

This is incorrect. Lots of terminal utilities support SOCKS, e.g. curl.

I use ShadowsocksX-NG as client.

If ShadowsocksX-NG already provides HTTP proxy, why not use it?

riobard avatar Apr 11 '17 08:04 riobard

This is incorrect. Lots of terminal utilities support SOCKS, e.g. curl

for example docker needs HTTP proxy

If ShadowsocksX-NG already provides HTTP proxy, why not use it?

I am using it now.

But for some situation comand line client will be more usefull. Not all hardware has a GUI :) Now for that kind situations in addition to SS I have to use polipo proxy to convert SOCKS to HTTP.

If you develop both server and slient side, HTTP proxy will be very handy, less additional apps required.

daciwei avatar Apr 11 '17 08:04 daciwei

According to https://github.com/docker/docker/issues/5989#issuecomment-205393601 you can use SOCKS proxy with Docker.

I guess the question is actually what applications only support HTTP proxy but not SOCKS proxy?

riobard avatar Apr 11 '17 10:04 riobard

go get ... not working with socks as I know... (or I don't know how)

Docker on MacOs not using SOCK proxy (at least for me). I saw this commit before and tried lots of times to make it work... but only HTTP(S)

Official docker app for mac even don't have other proxy options...

screen shot 2017-04-11 at 1 13 12 pm

daciwei avatar Apr 11 '17 11:04 daciwei

What if you choose "Use system proxy" and set the system proxy to SOCKS? Will it work?

riobard avatar Apr 11 '17 13:04 riobard

unfortunately also not working.

So I use HTTP proxy a lot... :)

daciwei avatar Apr 12 '17 12:04 daciwei

I see. It seems HTTP proxy is still necessary. I'll consider adding it next.

riobard avatar Apr 13 '17 13:04 riobard

@riobard Yes, HTTP will be very handy. I would really appreciate if you can and it to development plans.

daciwei avatar Apr 16 '17 07:04 daciwei

https://github.com/bigtan/cow

I just give go-ss2 a http proxy.

bigtan avatar Apr 25 '17 16:04 bigtan

@riobard what's the progress?

helphi avatar Dec 20 '18 04:12 helphi

Currently not planned.

riobard avatar Dec 20 '18 17:12 riobard

https://github.com/snail007/goproxy

maybe you can try this, or refer to this

https://superuser.com/questions/423563/convert-http-requests-to-socks5

leewi9 avatar May 25 '20 14:05 leewi9

anydesk need http proxy only

mgttt avatar Jun 14 '20 08:06 mgttt

https://github.com/bigtan/cow

I just give go-ss2 a http proxy.

@bigtan Hi, I wanna implement a http listener in go-ss2 client too, and this repo is gone. Could you please re-open it for reference? Thank you.

JimLee1996 avatar May 07 '21 04:05 JimLee1996

You can compile the http proxy support yourself with this implementation.

BigSully avatar Jan 18 '22 12:01 BigSully