using shadowsocks in terminal

Using Shadowsocks with Command Line Tools

1
2
3
4
5
#1
$ brew install proxychains-ng
#2
$ mkdir ~/.proxychains;touch ~/.proxychains/proxychains.conf

then copy

1
2
3
4
5
6
7
8
9
10
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

into ~/.proxychains/proxychains.conf

##usage

1
2
$ proxychains4 youtube-dl -o funny_video.flv https://www.youtube.com/funny_video
##youtube-dl supported site https://github.com/rg3/youtube-dl/blob/master/docs/supportedsites.md :D