Windows/macOS安装proxychains

Windows

https://github.com/shunf4/proxychains-windows/releases 下载proxychains_0.6.8_win32_x64.zip

修改%USERPROFILE%\.proxychains\proxychains.conf配置,ProxyList改为

1
2
[ProxyList]
socks5 127.0.0.1 1087

macOS

关闭sip

关机后长按电源进入到恢复模式的终端

1
2
csrutil disable
reboot

Intel Silicon

如果是英特尔的CPU,用Homebrew安装

1
brew install proxychains-ng

修改配置

1
vim /opt/homebrew/etc/proxychains.conf

修改ProxyList

1
2
[ProxyList]
socks5 127.0.0.1 1087

如果需要别名命令,可以配置环境变量

1
vim ~/.bash_profile
1
alias pc='proxychains4'
1
source ~/. bash_profile

Apple Silicon

如果是M系列的CPU,需要编译安装

开启arm64e支持

1
2
sudo nvram boot-args=-arm64e_preview_abi
reboot

安装proxychains-ng

1
2
3
4
5
6
7
cd ~/dev
git clone https://github.com/rofl0r/proxychains-ng
cd proxychains-ng
CFLAGS="-arch arm64e" LDFLAGS="-arch arm64e" ./configure --prefix=/usr/local --bindir=/usr/local/bin --libdir=/usr/local/lib --fat-binary-m1
make
sudo make install
cp src/proxychains.conf proxychains.conf

修改配置

1
vim proxychains.conf

修改ProxyList

1
2
[ProxyList]
socks5 127.0.0.1 1087

配置环境变量

1
vim ~/.zprofile
1
alias pc='~/dev/proxychains-ng/proxychains4 -f ~/dev/proxychains-ng/proxychains.conf'
1
source ~/.zprofile