Created Using Shadowsocks with command line tools on Linux / Unix (markdown)
parent
af7fe0ceb3
commit
78adb8965a
1 changed files with 31 additions and 0 deletions
31
Using-Shadowsocks-with-command-line-tools-on-Linux---Unix.md
Normal file
31
Using-Shadowsocks-with-command-line-tools-on-Linux---Unix.md
Normal file
|
@ -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/
|
Loading…
Add table
Add a link
Reference in a new issue