Terminal proxy with Shadowsocks
Aug 25, 2017 · 2 min read
Install proxychains
brew install proxychains-ngCreate config file ~/.proxychains/proxychains.conf
mkdir ~/.proxychains
vim ~/.proxychains/proxychains.confCopy text below to config file
strict_chain
proxy_dns
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
quiet_mode [ProxyList]
socks5 127.0.0.1 1080
Open Shadowsocks global mode first, then
proxychains4 curl https://www.twitter.com/
proxychains4 git push origin master
// or
proxychains4 bash
curl https://www.twitter.com/
git push origin master// test IP
curl ip.gs
Mac OS 10.11 need to turn off System Integrity Protection
1. Reboot, then Command + R to enter recovery mode
2. choose Terminal from left-top menu
3. csrutil disable; reboot// check status
csrutil status
// this means turned off
System Integrity Protection status: disabled.

