Terminal proxy with Shadowsocks

Bobo Shone
Aug 25, 2017 · 2 min read

Install proxychains

brew install proxychains-ng

Create config file ~/.proxychains/proxychains.conf

mkdir ~/.proxychains 
vim ~/.proxychains/proxychains.conf

Copy 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.

Bobo Shone

iOS development

)

Bobo Shone

Written by

iOS Developer

Bobo Shone

iOS development

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade