环境mac os 10.13.3 需要关闭 mac 上的 sip,Shadowsocks已配置
step1:brew install proxychains-ng
step2:vim /usr/local/etc/proxychains.conf
在ProxyList下添加对应代理地址和端口 如:socks5 127.0.0.1 1086
setp3: 测试(开启Shadowsocks全局)
curl myip.ipip.net
当前IP:xx.xx.xx.xx 来自于:中国上海上海 电信
proxychains4 curl myip.ipip.net
当前IP:xx.xx.xx.xx 来自于:美国加利福尼亚州洛杉矶 it7.net
step4: 如果代理报错终端请执行命令:
brew install git
错误如下:
dyld: warning: could not load inserted library '/usr/local/Cellar/proxychains-ng/4.12_1/lib/libproxychains4.dylib' into library validated process because no suitable image found. Did find:
/usr/local/Cellar/proxychains-ng/4.12_1/lib/libproxychains4.dylib: code signing blocked mmap() of '/usr/local/Cellar/proxychains-ng/4.12_1/lib/libproxychains4.dylib'
/usr/local/Cellar/proxychains-ng/4.12_1/lib/libproxychains4.dylib: stat() failed with errno=1
reference:
https://zhuanlan.zhihu.com/p/21281236
https://segmentfault.com/a/1190000011950800
https://www.cnblogs.com/stackflow/p/8260118.html