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

system proxy support #45

Open
helphi opened this issue May 10, 2017 · 4 comments
Open

system proxy support #45

helphi opened this issue May 10, 2017 · 4 comments

Comments

@helphi
Copy link

helphi commented May 10, 2017

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.

@riobard
Copy link

riobard commented May 10, 2017

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

@helphi
Copy link
Author

helphi commented May 10, 2017

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.

@riobard
Copy link

riobard commented Jun 21, 2017

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

@riobard riobard closed this as completed Jun 21, 2017
@riobard riobard assigned riobard and unassigned riobard Jun 21, 2017
@helphi
Copy link
Author

helphi commented Jan 24, 2019

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.

@riobard riobard reopened this Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants