DHT traffic may be TCP-tunneled

88 views
Skip to first unread message

Miguel Freitas

unread,
Jun 26, 2014, 3:29:43 PM6/26/14
to twist...@googlegroups.com
Hi people,

I'm about to commit a patch that implements tunneling of the DHT traffic over TCP. The motivation is to make twister compatible with TOR (they do not support UDP, required by DHT).

So how this thing works?

The premise is that most of people will still be running twister outside TOR, thus with full internet connectivity including UDP. These nodes will behave as "DHT proxies" to nodes without UDP, relaying the traffic back and forward.

The TCP connection used is the same as the registration network, that is, the Bitcoin P2P protocol, now extended with DHT requests and replies commands.

Of course, some limits will be enforced, like maximum number of simultaneous DHT requests and total requests/second. If node misbehave it will be banned (Bitcoin closes connection).

Nodes requiring DHT proxy do not rely on any particular nodes for that service: they will randomly choose four connections to use for each DHT request they made. This should help to balance the load and also adds redundancy.

So far I have only tested it locally, so you might guess this is pretty much experimental.

Besides, I don't think we are tor-ready yet: the DHT traffic used for profiles, avatars etc has been tunneled but not the internal DHT requests from libtorrent (ie. tracker requests).

But we are getting there...

regards,

Miguel

Shift rus

unread,
Jun 27, 2014, 12:31:09 PM6/27/14
to twist...@googlegroups.com
nice =) https://github.com/miguelfreitas/twister-core/issues/224

Good ide, Miguel, in the future we can use it for mobile clients (like tox) and people under NAT (like tox)

четверг, 26 июня 2014 г., 23:29:43 UTC+4 пользователь Miguel Freitas написал:

Miguel Freitas

unread,
Jun 27, 2014, 7:44:03 PM6/27/14
to twist...@googlegroups.com
On Fri, Jun 27, 2014 at 1:31 PM, Shift rus <shif...@gmail.com> wrote:

Yes, this is somewhat related.

But the thing i'm really aiming is tor support.

regards,

Miguel

Shift rus

unread,
Jun 29, 2014, 11:01:59 AM6/29/14
to twist...@googlegroups.com
and what about I2P ? 

суббота, 28 июня 2014 г., 3:44:03 UTC+4 пользователь Miguel Freitas написал:

Miguel Freitas

unread,
Jun 29, 2014, 2:37:23 PM6/29/14
to twist...@googlegroups.com

Shift rus

unread,
Jul 1, 2014, 6:51:56 AM7/1/14
to twist...@googlegroups.com
Abaout i2p - take a look at that i2p lib/project https://github.com/orignal/i2pd it is C/C++ i2p implementation 

воскресенье, 29 июня 2014 г., 22:37:23 UTC+4 пользователь Miguel Freitas написал:
Reply all
Reply to author
Forward
0 new messages