安装tsocks

安装

brew tap Anakros/homebrew-tsocks

brew install --HEAD tsocks

编辑配置

vim /usr/local/etc/tsocks.conf
server = 127.0.0.1
server_port 1080
server_type = 5

打开代理并测试

tsocks wget www.google.com