安装 polipo
sudo port install polipo
快速使用
$ polipo socksParentProxy=localhost:1080
配置文件方式启用
# vi ~/.poliporc
socksParentProxy = “127.0.0.1:1080″
socksProxyType = socks5
proxyAddress = "::0" # both IPv4 and IPv6
# or IPv4 only
# proxyAddress = "0.0.0.0"
proxyPort = 8123
运行
$ polipo -c ~/.poliporc
测试
$ curl –proxy http://127.0.0.1:8123 https://www.google.com
配置开机自启动
参考链接:mac环境下开机自启动Shell脚本
参考链接
hg使用代理,向.hgrc的末尾添加以下内容:
[hostfingerprints]
vim.googlecode.com=c2:8a:1e:9c:a8:00:be:02:4c:2a:53:60:2b:09:50:d8:ee:5c:bc:68
[http_proxy]
host=127.0.0.1:8087
[web]
cacerts = /etc/ssl/certs/ca-certificates.crt