From 78adb8965a026160f4acbb38189445fc9ca1a562 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Sat, 19 Apr 2014 01:45:20 -0700 Subject: [PATCH] Created Using Shadowsocks with command line tools on Linux / Unix (markdown) --- ...with-command-line-tools-on-Linux---Unix.md | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Using-Shadowsocks-with-command-line-tools-on-Linux---Unix.md diff --git a/Using-Shadowsocks-with-command-line-tools-on-Linux---Unix.md b/Using-Shadowsocks-with-command-line-tools-on-Linux---Unix.md new file mode 100644 index 0000000..71062aa --- /dev/null +++ b/Using-Shadowsocks-with-command-line-tools-on-Linux---Unix.md @@ -0,0 +1,31 @@ +First, set up shadowsocks as usual. Suppose your local is running on 127.0.0.1:1080. + +Install [proxychains][1]. + +On Debian/Ubuntu: + + apt-get install proxychains + +On Mac OS X: + + brew install proxychains-ng + +Make a config file at ~/.proxychains/proxychains.conf + + 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 + + [ProxyList] + socks5 127.0.0.1 1080 + + +Then run command with proxychains. + + proxychains4 curl https://www.twitter.com/ + proxychains4 git push origin master + +[1]: http://proxychains.sourceforge.net/ \ No newline at end of file