Mac下通過proxychains-ng配置thunderbird來訪問gmail

國內的GFW太強大了,導致一些優秀的軟件被牆,和我們關係比較大的就是gmail了。一般情況下,通過代理我們可以很容易實現客戶端的訪問,但客戶端或者碼農的終端要實現訪問外網,就需要自己配置了。

在Mac上可以通過proxychains-ng這個軟件實現全局代理,再加上對thunderbird自身代理的配置之後就可以訪問gmail了。

1)安裝proxychains-ng

$ brew install proxychains-ng

2)配置proxychains-ng實現全局代理,具體是編輯/usr/local/etc/proxychains.conf中的proxylist,加入你自己代理的端口

[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks4  127.0.0.1 7070

3)在終端驗證,proxychains-ng能夠正常工作,具體是通過 proxychains4 + 命令:

$ proxychains4 curl google.com
[proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.7/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.7/lib/libproxychains4.dylib
[proxychains] DLL init
[proxychains] Strict chain  ...  127.0.0.1:7070  ...  google.com:80  ...  OK
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>

4)上述驗證成功了之後,再配置一下thunderbird就可以訪問gmail 了,主要是填一下SOCKS Host和Port


發佈了80 篇原創文章 · 獲贊 60 · 訪問量 48萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章