TOR隠しサービスはcURLを介して常にアクセスできるわけではありません。何度も試さなければならない

TOR隠しサービスはcURLを介して常にアクセスできるわけではありません。何度も試さなければならない

cURLを使用してTORの隠しサービスにアクセスしようとすると、何らかの理由でサイトに100%アクセスできなくなります。何度も戻ってきます"curl: (7) Can't complete SOCKS5 connection to 0.0.0.0:0. (5)"

TORでうまく機能するようにcURLを設定するためにできることはありますか?これは私が得た結果です。

root@Dexter:~# curl --proxy socks5h://localhost:9050 http://5ztppjwojkuslibm.onion/
curl: (7) Can't complete SOCKS5 connection to 0.0.0.0:0. (5)
root@Dexter:~# curl --proxy socks5h://localhost:9050 http://5ztppjwojkuslibm.onion/
curl: (7) Can't complete SOCKS5 connection to 0.0.0.0:0. (5)
root@Dexter:~# curl --proxy socks5h://localhost:9050 http://5ztppjwojkuslibm.onion/
curl: (18) transfer closed with 1 bytes remaining to read
<h1>This is a test page to see if I can run a hidden tor service!</h1><h3>Looks like it's working!</h3>root@Dexter:~# 
root@Dexter:~# curl --proxy socks5h://localhost:9050 http://5ztppjwojkuslibm.onion/
curl: (18) transfer closed with 1 bytes remaining to read
<h1>This is a test page to see if I can run a hidden tor service!</h1><h3>Looks like it's working!</h3>root@Dexter:~# 

ベストアンサー1

ネットワーク環境に問題がある可能性があります。

duckduckgo onionのウェブサイトをhttps://3g2upl4pq6kufc4m.onion例に挙げます。 AWS EC2とローカルネットワーク環境の両方でうまく機能します。

$time curl -I --proxy socks5h://localhost:9050 https://3g2upl4pq6kufc4m.onion/
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 17 Jul 2018 13:51:35 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 5499
Connection: keep-alive
ETag: "5b4d156e-157b"
Strict-Transport-Security: max-age=0
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: default-src https: blob: data: 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'self'
X-XSS-Protection: 1;mode=block
X-Content-Type-Options: nosniff
Referrer-Policy: origin
Expect-CT: max-age=0
Expires: Tue, 17 Jul 2018 13:51:34 GMT
Cache-Control: no-cache
Accept-Ranges: bytes


real    0m2.235s
user    0m0.048s
sys 0m0.016s

<title>わかった

curl -fsL --proxy socks5h://localhost:9050 https://3g2upl4pq6kufc4m.onion | grep 'title'
    <title>DuckDuckGo — Privacy, simplified.</title>

おすすめ記事