主要原理
SS翻墙是采用sock5协议的,而很多终端程序翻墙需要走http/https协议,所以需要配置一个将sock5转http协议的工具,例如polipo,它允许设置一个“父sock服务”并允许通过“子http端口”访问该服务。【其实就是http协议转socke5协议通讯的工具】
工作流程
1. 安装polipo
brew install polipo
2. 启动配置polipo(以下启动命令是交互进程)
polipo socksParentProxy=localhost:1080
3. 配置http_proxy、https_proxy环境变量,或者应用程序中的相关配置
export http_proxy=localhost:8123
export https_proxy=localhost:8123
备注
- 端口1080是SS默认监听的端口。
- 端口8123是polipo默认监听的端口。