Mos*_*rha 12 tor tor-browser 16.04
我想在终端上 Tor。这就是我以前所做的,并且它没有任何问题地工作:
torify
或torsocks
在命令之前但这是有一段时间,这是行不通的。我不记得这是否是在我的系统发生某些特定更改后发生的。我没有任何重大和明显的变化。
也许以下几行可以帮助您了解问题:
$ curl ifconfig.me
111.222.333.444 <<< My real IP
$ torify curl ifconfig.me 2> /dev/null
$ torify curl ifconfig.me
[Jan 21 20:55:05] PERROR torsocks[16007]: socks5 libc connect: Connection refused (in socks5_connect() at socks5.c:185)
$ torsocks curl ifconfig.me
[Jan 21 20:59:50] ERROR torsocks[16100]: Unable to resolve. Status reply: 4 (in socks5_recv_resolve_reply() at socks5.c:666)
curl: (6) Could not resolve host: ifconfig.me
Run Code Online (Sandbox Code Playgroud)
当我面临这个问题时,我可以毫无问题地轻松使用 Tor 浏览器。
知道如何解决这个问题吗?
谢谢
Mos*_*rha 14
花了很多时间和精力,我终于可以自己解决问题了。
似乎默认情况下,Tor 应该设置为将端口 9050 用于 socks5。可以在/etc/tor/torsocks.conf
文件中找到此设置。查看此文件中的这些行:
# Default Tor address and port. By default, Tor will listen on localhost for
# any SOCKS connection and relay the traffic on the Tor network.
TorAddress 127.0.0.1
TorPort 9050
Run Code Online (Sandbox Code Playgroud)
根据我的 TorBrowser 设置,浏览器使用端口 9150 而不是 9050。因此,我更改了相关行并将 9150 设置为端口。
现在,torsocks
和torify
正常工作。
(只是 ifconfig.me 网站似乎存在一些技术问题,因为即使在浏览器中我也无法打开它。但其他网站运行良好。)
归档时间: |
|
查看次数: |
23001 次 |
最近记录: |