mac下使用proxychains实现代理

介绍
proxychains - a tool that forces any TCP connection made by any given application to follow through proxy like TOR or any other SOCKS4, SOCKS5 or HTTP(S) proxy. Supported auth-types: "user/pass" for SOCKS4/5, "basic" for HTTP.
翻译一下:就是一个强制你的tcp链接使用代理的工具,支持socks4,socks5而且socks4/5支持用户名和密码的方式,http支持basic验证.以前发过一篇<<mac系统配置socks5转http代理>> 是用的转换工具,使用的时候,再配置上代理.而用这个工具的话,配置一次,用的时候就不用再操做了,比较方便php

安装
其它平台叫proxychains,在OSX下叫proxychains-ngapp

brew install proxychains-ng
==> Downloading https://homebrew.bintray.com/bottles/proxychains-ng-4.14.catalina.bottle.tar.gz
######################################################################## 100.0%
==> Pouring proxychains-ng-4.14.catalina.bottle.tar.gz