proxychains 無法解析主機

proxychains 無法解析主機

我正在嘗試為 wsl2 (Ubuntu 20.04) 配置我的代理,以便我可以在中國的 wsl2 上使用 git。

我有一個代理,其代理是 127.0.0.1:8090,它在我的 Windows 上運行良好。我按照教程並socks5 127.0.0.1 8090在 proxychains.conf 中進行了設置,但它不起作用。

然後我發現了這個解決方案並安裝了tor,啟動它,但執行proxychains curl google.com仍然給出以下錯誤訊息:

ProxyChains-3.1 (http://proxychains.sf.net)
|DNS-request| google.com
|S-chain|-<>-127.0.0.1:7890-<--timeout
|DNS-response|: google.com does not exist
curl: (6) Could not resolve host: google.com

答案1

將 IP 位址從 127.0.0.1 更改為 172.29.160.1,這是我從 cmd 中的 ipconfig 取得的 wsl 的 ipv4 位址: 在此輸入影像描述 那麼一切都會正確: 在此輸入影像描述

相關內容