Proxies

Using SOCKS5 127.0.0.1:1080.

CURL / Homebrew

$ echo 'socks5 = "127.0.0.1:1080"' >> ~/.curlrc

SSH / Git

$ echo '#!/bin/bash\nnc -x127.0.0.1:1080 -X5 $*' > ~/.proxy-wrapper
$ echo 'Host github.com\n\tHostname github.com\n\tUser git\n\tProxyCommand $HOME/proxy-wrapper \'%h %p\'' >> ~/.ssh/config

你可能感兴趣的:(Proxies)