【问题标题】:Using CURL with TOR as a Proxy on CentOs在 CentO 上使用 CURL 和 TOR 作为代理
【发布时间】:2016-08-31 19:10:35
【问题描述】:

我想在 CentOS 机器上使用 Tor 作为带有 curl 或 wget 的 HTTP 请求的代理。 我使用了这个 How-to,并在 stackexchange 和 stackoverflow 上寻找了一些答案。 https://medium.com/the-sysadmin/using-tor-for-your-shell-script-fee9d8bdef5c#.9ixz30jbn

如果我在 shell 'tor' 中输入,我会得到:

Aug 31 21:01:29.871 [notice] Tor v0.2.8.6 running on Linux with Libevent 2.0.22-stable, OpenSSL 1.0.2h and Zlib 1.2.8.
Aug 31 21:01:29.871 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Aug 31 21:01:29.871 [notice] Read configuration file "/home/wmjio5f6/.linuxbrew/etc/tor/torrc".
Aug 31 21:01:29.909 [warn] ControlPort is open, but no authentication method has been configured.  This means that any program on your computer can reconfigure your Tor.  That's bad!  You should upgrade your Tor controller as soon as possible.
Aug 31 21:01:29.937 [notice] Opening Socks listener on 127.0.0.1:9050
Aug 31 21:01:29.939 [notice] Opening Control listener on 127.0.0.1:9151
Aug 31 21:01:29.000 [notice] Parsing GEOIP IPv4 file /home/wmjio5f6/.linuxbrew/Cellar/tor/0.2.8.6/share/tor/geoip.
Aug 31 21:01:30.000 [notice] Parsing GEOIP IPv6 file /home/wmjio5f6/.linuxbrew/Cellar/tor/0.2.8.6/share/tor/geoip6.
Aug 31 21:01:30.000 [notice] Bootstrapped 0%: Starting
Aug 31 21:01:31.000 [notice] Bootstrapped 80%: Connecting to the Tor network
Aug 31 21:01:32.000 [notice] Bootstrapped 85%: Finishing handshake with first hop
Aug 31 21:01:32.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
Aug 31 21:01:32.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.
Aug 31 21:01:32.000 [notice] Bootstrapped 100%: Done

我的错误在哪里,或者哪个命令是正确的?

【问题讨论】:

    标签: proxy centos tor


    【解决方案1】:

    你没有犯错。该输出表明 Tor 已启动、连接到网络并正在运行。您可能想弄清楚如何对其进行守护,或者在后台运行它 (nohup tor &)。

    Opening Socks listener on 127.0.0.1:9050 行告诉您它的 SOCKS(代理)端口正在侦听端口 9050。这是您希望 curl 或 wget 等应用程序通过该端口进行代理。

    如您链接的文章所示,您只需要使用 Tor 的 SOCKS 端口运行 curl。

    curl -s --socks5-hostname 127.0.0.1:9050 http://www.showmyip.gr
    

    【讨论】:

      猜你喜欢
      • 2010-12-30
      • 1970-01-01
      • 1970-01-01
      • 2014-08-25
      • 1970-01-01
      • 2015-04-23
      • 2013-12-16
      • 1970-01-01
      • 2013-01-05
      相关资源
      最近更新 更多