I use ping www.google.com can't response any info!
Because, ping 用的是 ICMP 协议,而 proxychains 不支持.
you can use
curl www.google.com to test your proxy!
Why?
Because ShadowSock is just for browser, like ssh. It just like a layout for browser. Not for all application in the ma: for example: Iterm and so on!
Let us to study how to config Iterm2 Proxy?
I use Mac
First
how to install proxychains-ng
brew install proxychains-ng
Second
vim /usr/local/etc/proxychains.conf
you shoud on the bottom file add this:
socks5 127.0.0.1 1080 just your local proxy
Third:
you can test your proxychains4 can work?
proxychains4 git pull origin develop
your config is success~
Four
I don't like input proxychains4, it is too long for me.
I use zsh, So you can add alias
You can :
vim ~/.zshrc
alias pc='proxychains4'
So you can pc git pull
Five
you can test your Iterm Proxy config use ping www.google.com
Because ping use ICMP,So you can use
curl www.google.com
It is success!
reference:
http://www.w3ccafe.com/590.html
Thanks to:
http://www.dreamxu.com/proxychains-ng/
http://yanghui.name/blog/2015/07/19/make-all-command-through-proxy/
No comments:
Post a Comment