Trung Thành Trần
2017-02-21 07:27:53 UTC
Hi all,
I am building a private DHT by using a DHT bootstrap (
https://github.com/bittorrent/bootstrap-dht). Below is my scenario with a
leecher (libtorrent) and a seeder(libtorrent) which are located in
separated network (avoid PEX, LSD).
- Scenario 1: Both of them connect to private DHT bootstrap. A leecher and
a seeder can be communicated -> OK.
- Scenario 2: Seeder connects to private DHT bootstrap. Seeder connects to
global DHT bootstrap(router.bittorrent.com). A leecher and a seeder can be
communicated -> KO.
- Scenario 3: Both of them connect to private DHT bootstrap -> Leecher's
swarm contains nodes which are not in my private DHT network). KO.
It makes me confused. I have several basic questions:
- DHT bootstrap is only an entry of DHT global network or it handles a
private one?
- How can I disable PEX in libtorrent?
- How build an extension to control peer connection with DHT? On other
words, only peers implemented a specific protocol (password, encrypt, ...)
can join swarm.
Thanks,
===========================================
*TRAN Trung Thanh*
*Tel*: +84 9 85 54 55 95
*Skype*: trungthanh.tran
I am building a private DHT by using a DHT bootstrap (
https://github.com/bittorrent/bootstrap-dht). Below is my scenario with a
leecher (libtorrent) and a seeder(libtorrent) which are located in
separated network (avoid PEX, LSD).
- Scenario 1: Both of them connect to private DHT bootstrap. A leecher and
a seeder can be communicated -> OK.
- Scenario 2: Seeder connects to private DHT bootstrap. Seeder connects to
global DHT bootstrap(router.bittorrent.com). A leecher and a seeder can be
communicated -> KO.
- Scenario 3: Both of them connect to private DHT bootstrap -> Leecher's
swarm contains nodes which are not in my private DHT network). KO.
It makes me confused. I have several basic questions:
- DHT bootstrap is only an entry of DHT global network or it handles a
private one?
- How can I disable PEX in libtorrent?
- How build an extension to control peer connection with DHT? On other
words, only peers implemented a specific protocol (password, encrypt, ...)
can join swarm.
Thanks,
===========================================
*TRAN Trung Thanh*
*Tel*: +84 9 85 54 55 95
*Skype*: trungthanh.tran