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

system proxy support

Open helphi opened this issue 8 years ago • 4 comments

Because i am in a corporation network, i run shadowsocks with HTTP_PROXY=192.168.1.100:80 go-shadowsocks2 -verbose -socks :1081 -c server:port -cipher aes-256-cfb -password xxxxxx, but the system proxy HTTP_PROXY=192.168.1.100:80 not work. Hope shadowsocks can support system proxy.

helphi avatar May 10 '17 08:05 helphi

Do you mean in your corp network you have to use the HTTP proxy at 192.168.1.100:80 to access Internet?

riobard avatar May 10 '17 09:05 riobard

yes, all right. I use shadowsocks-windows on windows, and i can set my corp proxy with Forward Proxy... with the GUI. So i hope can do something like this on my linux system with go-shadowsocks2.

helphi avatar May 10 '17 14:05 helphi

Seems Windows system proxy only supports HTTP protocol, while Shadowsocks speaks SOCKS protocol. In which case this issue is a duplicate of #27.

riobard avatar Jun 21 '17 09:06 riobard

I don't think this issue is duplicate of #27 , #27 is about go-ss2 act as a httpproxy, but this issue is about go-ss2 client how to use a httpproxy to connect with ss server.

I can use proxychains to let ss client connect with ss server through httpproxy, for example, on ubuntu bionic:

sudo su

apt install proxychains shadowsocks

cat << EOF > /etc/proxychains.conf
[ProxyList]
http 192.168.1.100 80
EOF

proxychains sslocal -b 127.0.0.1 -l 1080  -s 192.241.199.18 -p 12554 -k "ss8.pm-31958873"

then, i can set my browser use 127.0.0.1:1080 as a socks5 proxy, and sslocal connect ssserver 192.241.199.18:12554 through the httpproxy 192.168.1.100:80.

This method is not working with go-ss2, but sslocal is ok.

helphi avatar Jan 24 '19 03:01 helphi