proxychains安装

# git仓库中编译安装
$ git clone https://github.com/rofl0r/proxychains-ng.git
$ cd proxychains-ng
$ ./configure
$ make && make install
$ cp ./src/proxychains.conf /etc/proxychains.conf
$ cd .. && rm -rf proxychains-ng
# 或直接安装
$ brew install proxychains-ng

编辑proxychains配置

$ vim /etc/proxychains.conf

sock4 127.0.0.1 9095 改为socks5 12.0.0.1 1080 (配置同ssr或v2ray客户端一致)

使用方法

在需要代理的命令前加上 proxychains4 ,如

$ proxychains4 wget http://xxx.com/xxx.zip