HelloZeroNet / ZeroNet

ZeroNet - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.io
Other
18.37k stars 2.27k forks source link

ZeroNet seems to bomb Tor's SOCKS port with non-SOCKS requests #1243

Open yurivict opened 6 years ago

yurivict commented 6 years ago

I run ZeroNet in --tor always mode. When ZeroNet is running, a lot of such log records appear in Tor's log:

Jan 14 23:37:43.000 [warn] Socks version -125 not recognized. (This port is not an HTTP proxy; did you want to use HTTPTunnelPort?)
Jan 14 23:37:43.000 [warn] Fetching socks handshake failed. Closing.

Stopping ZeroNet stops these errors too. zeronet-0.6.0 tor-0.3.2.9 FreeBSD 11.1

tienanh2007 commented 6 years ago

Hi, I thought ZeroNet is such a cool project and since I see some help wanteds here, I want to help with fixing it. However, I don't know where to start. Could you tell me where to start if I want to fix this issue?

yurivict commented 6 years ago

Hmmm.

There could be several approaches. You could identify all places where ZeroNet establishes any network connections, and print out what the destinations are when the port corresponds to SOCKS5.

You could also run it under the DTrace monitoring (ex. on FreeBSD), and determine the stack where such connection is established.

Or, alternatively, the author might just know the cause right off of the top of his head once he reads the description. That's what I was actually hoping for. -)

But this isn't the easiest problem to troubleshoot. If you have to ask, you should probably choose some less tricky problem to begin with. -)

tienanh2007 commented 6 years ago

I understand. Maybe you could point me to one where you think I could begin with since reading through all the issue it's hard for me to tell.

yurivict commented 6 years ago

I am a wrong person to ask this, because I am not looking through the bug list regularly, sorry ... Just choose something that you might feel comfortable with when you read the description.

purplesyringa commented 6 years ago

@tienanh2007 You might want to look at #1223 or #1233 or #1247.