这篇文章上次修改于 2223 天前,可能其部分内容已经发生变化,如有疑问可询问作者。 浏览器设置http/https代理很简单。不过假若你想在terminal下用代理就麻烦了比如ssh,apt-get yum都不支持http/https代理,只支持socket5代理,好在有tsocks这个神器 ``` sudo apt-get install tsocks -y ``` macos下请 ``` brew tap Anakros/homebrew-tsocks brew install --HEAD tsocks ``` 配置代理: ``` $ sudo vim /etc/tsocks.conf server = 1.2.3.4 server_type = 5 server_port = 8000 ``` macos下: ``` vim /usr/local/etc/tsocks.conf server = 127.0.0.1 server_port 1080 server_type = 5 ``` 然后就可以愉快的穿越了 ``` tsocks wget https://superuser.com/q/262956/66003 ``` 参考: - https://superuser.com/questions/262956/how-to-invoke-a-command-using-specific-proxy-server - https://github.com/Anakros/homebrew-tsocks - http://tsocks.sourceforge.net/faq.php#ssh
没有评论