2016-10-09 52 views
0

我正在運行Ubuntu。安裝了'sudo apt-get install tor'並安裝了'links'。torify鏈接返回「找不到主機」

我試圖運行與使用Tor鏈接:「鏈接的torify」

程序加載,但是當我試圖去任何地方,它返回一個「找不到主機」的錯誤。

鏈接工作正常,沒有'torify'和網站都可以訪問。我也可以使用ping命令ping網站,沒問題。

是否tor不適用於鏈接?我需要配置什麼嗎?

回答

0

你可能有一個是被Ubuntu提供一個真正的舊版本,它的返回有點像錯誤:

libtorsocks(5389): WARNING: The symbol res_query() was not found in any shared library with the reported error: Not Found! Also, we failed to find the symbol __res_query() with the reported error: Not Found

我想嘗試的解決方法就是從源代碼編譯的最新版本,並使用它。

sudo apt-get remove torsocks 
git clone https://git.torproject.org/torsocks.git 
cd torsocks 
./autogen.sh 
./configure 
make 
sudo make install 

但是,這似乎並沒有幫助links。它仍然無法解析名稱,我也無法使用代理鏈工作(它確實通過Tor解析DNS,但不知何故無法返回鏈接)。

我認爲解決方案可能是使用links的SOCKS代理選項(它不會爲我泄漏DNS)。

links -socks-proxy 127.0.0.1:9050 https://example.com 
+0

感謝關於使用鏈接的SOCKS代理的最後一個技巧。 – user249705

+0

我最終只使用'l''而不是'鏈接'。我更喜歡後者,但至少我有一個功能終端瀏覽器現在使用tor與'torsocks lynx'謝謝! – user249705