項目主頁:https://github.com/rofl0r/proxychains-ng
官方說明:
proxychains ng (new generation) - a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies. continuation of the unmaintained proxychains project.
安裝
使用 Homebrew 安裝
brew install proxychains-ng
配置
編輯配置文件 mvim /usr/local/etc/proxychains.conf
在 [ProxyList] 下面(也就是末尾)加入代理類型,代理地址和端口
例如使用 TOR 代理,註釋掉原來的代理並添加
socks5 127.0.0.1 9050
如果所在的網絡很複雜,可能需要在配置文件中啓用dynamic_chain
- 按照列表中出現的代理服務器的先後順序組成一條鏈,如果有代理服務器失效,則自動將其排除,但至少要有一個是有效的
然後在 [ProxyList] 下添加多個代理
默認是:strict_chain
- 按照後面列表中出現的代理服務器的先後順序組成一條鏈,要求所有的代理服務器都是有效的
使用
proxychains4 curl twitter.com
配合 wget 和 curl 來下載,非常好用