ShadowsocksR-Live / shadowsocksr-native

翻墙 从容穿越党国敏感日 ShadowsocksR (SSRoT) native implementation for all platforms, GFW terminator
https://github.com/ShadowsocksR-Live/shadowsocksr-native/wiki
GNU General Public License v3.0
2.74k stars 765 forks source link

Windows平台下全局代理无法使用 #166

Closed GitTouch closed 3 years ago

GitTouch commented 3 years ago

Windows 下设置系统代理无法上网,报的错误是 junk in handshake

ssrlive commented 3 years ago

知道。垃圾微软二十年过去了,都不直接支持SOCKS5代理,你可以使用前置代理 Privoxy 来让微软的垃圾浏览器 Edge 和 IE 可以走代理。

https://github.com/ssrlive/Privoxy/releases

https://github.com/ssrlive/Privoxy/blob/master/README.md

配置

Windows 下 Privoxy 的配置文件是 ./config.txt ,任意编辑器打开该文件,修改和添加下面两行。

listen-address  0.0.0.0:8118
forward-socks5 / 127.0.0.1:1080 .

第一行的意思是监听来自任意地址的对 8118 端口的访问,第二行表示将请求转发给本地 1080 端口,也就是你本地的 SSR 客户端所开放的端口, 注意第二行末尾的英文点号(.)别忘了。

OK,搞完重启 Privoxy 就生效了,在 Internet Options 填写 HTTP 代理的地方分别填写 Privoxy 所在机器 IP 地址和上面的 8118 端口就大功告成了。

image

GitTouch commented 3 years ago

多谢