How to use Kadnode to speedup torrent streaming

Hello All,
firstly many thanks to @mwarning for the package.

I can see many option it has..but all disabled default.. i try to enable all..
but i m not getting the actual output.. could any one share/tell how to use Kadnode in proper way..
if possible pls share config file if you have anything.. Many thanks in Advance.

here is my config

##
## KadNode is a P2P DNS resolver to resolve domains using the BitTorrent network.
##

config kadnode
	option enabled 1


## ECC Key usage:
## 1. Create public/secret key pair with `kadnode --bob-create-key /etc/kadnode_secret.pem`
## 2. Put the secret key file on the router that you want to resolve to and use it for option bob_load_key.
## 3. Use the public key hex output with .p2p attached on other devices to resovle to the router IP address via kadnode.

## Secret key for public key links
	list bob_load_key '/etc/kadnode_secret.pem'


## TLS usage:
## For resolving domains, put credentials on the router and use option tls_client_cert.
## For announcing domains, put the certificates and secret key on router and use option tls_server_cert.

## Folder of CA certificates
## Install package 'ca-certificates' for the official CA set.
	list tls_client_cert '/etc/ssl/certs'

## Server credentials
#	list tls_server_cert '/ect/mynode.crt,/etc/mynode.key'


## Add domains to be announced.
## Note: Only needed in special situations since tls_server_cert and bob_load_key announce automatically its associated domains.
#	list announce 'web.myname.p2p'

## Load and store good nodes every 24h and on start/shutdown.
#	option peerfile '/etc/kadnode/peers.txt'

## Add static peers addresses.
	list peer 'tracker.opentrackr.org:1337'
	list peer 'tracker.opentrackr.org:1337'
	list peer 'open.demonii.com:1337'
	list peer 'open.stealth.si:80'
	list peer 'tracker.torrent.eu.org:451'
	list peer 'tracker.moeking.me:6969'
	list peer 'explodie.org:6969'
	list peer 'exodus.desync.com:6969'
	list peer 'tracker1.bt.moack.co.kr:80'
	list peer 'tracker.theoks.net:6969'
	list peer 'tracker-udp.gbitt.info:80'
	list peer 'tracker.tamersunion.org:443'
	list peer 'tracker.gbitt.info:443'
	list peer 'tracker1.bt.moack.co.kr:80'
	list peer 'tracker.gbitt.info:80'
	list peer 'tracker.tiny-vps.com:6969'
	list peer 'tracker.dump.cl:6969'
	list peer 'tamas3.ynh.fr:6969'
	list peer 'retracker01-msk-virt.corbina.net:80'
	list peer 'open.free-tracker.ga:6969'
	list peer 'epider.me:6969'
	list peer 'bt2.archive.org:6969'
	list peer 'bt1.archive.org:6969'
	list peer 'bt.ktrackers.com:6666'
	list peer 'aarsen.me:6969'
	list peer 'tracker.renfei.net:443'
	list peer 'tracker.renfei.net:8080'
	list peer 'tracker.ipv6tracker.org:80'
	list peer 'wep'one.net:6969'
	list peer 'tracker2.dler.org:80'
	list peer 'tracker1.myporn.club:9337'
	list peer 'tracker.tryhackx.org:6969'
	list peer 'tracker.therarbg.to:6969'
	list peer 'tracker.therarbg.com:6969'
	list peer 'tracker.t-rb.org:6969'
	list peer 'tracker.srv00.com:6969'
	list peer 'tracker.qu.ax:6969'
	list peer 'tracker.publictracker.xy':6969'
	list peer 'tracker.fnix.net:6969'
	list peer 'tracker.filemail.com:6969'
	list peer 'tracker.farted.net:6969'
	list peer 'tracker.edkj.club:6969'
	list peer 'tracker.dler.org:6969'
	list peer 'tracker.ccp.ovh:6969'
	list peer 'tracker.anima.n':6969'
	list peer 'tracker.0x7c0.com:6969'
	list peer 'su-data.com:6969'
	list peer 'ryjer.com:6969'
	list peer 'run.publictracker.xy':6969'
	list peer 'public.tracker.vraphim.com:6969'
	list peer 'public.publictracker.xy':6969'
	list peer 'opentracker.io:6969'
	list peer 'open.xxtor.com:3074'
	list peer 'open.u-p.pw:6969'
	list peer 'oh.fuuuuuck.com:6969'
	list peer 'new-line.net:6969'
	list peer 'moonburrow.club:6969'
	list peer 'ipv4.rer.lol:2710'
	list peer 'free.publictracker.xy':6969'
	list peer 'evan.im:6969'
	list peer 'bubu.mapfactor.com:6969'
	list peer 'bittorrent-tracker.e-n-c-r-y-p-t.net:1337'
	list peer '1c.premierzal.ru:6969'
	list peer 'yolo.liberbear.com:443'
	list peer 'www.peckservers.com:9443'
	list peer 'tracker.yemekyedim.com:443'
	list peer 'tracker.netmap.top:8443'
	list peer 'tracker.loligirl.cn:443'
	list peer 'tracker.lilithraws.org:443'
	list peer 'tracker.ipfsscan.io:443'
	list peer 'tracker.gcrreen.xy':443'
	list peer 'tracker.cloudit.top:443'
	list peer 'tr.burnabyhighstar.com:443'
	list peer 'www.peckservers.com:9000'
	list peer 'wepzone.net:6969'
	list peer 'tracker2.dler.org:80'
	list peer 'tracker.qu.ax:6969'
	list peer 'tracker.netmap.top:6969'
	list peer 'tracker.mywaifu.best:6969'
	list peer 'tracker.files.fm:6969'
	list peer 'tracker.edkj.club:6969'
	list peer 'tracker.dler.org:6969'
	list peer 'tracker.bt4g.com:2095'
	list peer 't.overflow.biz:6969'
	list peer 'open.acgtracker.com:1096'
	list peer 'open.acgnxtracker.com:80'
	list peer 'ch3oh.ru:6969'
	list peer 'bittorrent-tracker.e-n-c-r-y-p-t.net:1337'
	list peer '1337.abcvg.info:80'
	list peer 'tracker.ddunlimited.net:6969'
	list peer 'torrents.artixlinux.org:6969'
	list peer 'run-2.publictracker.xy':6969'
	list peer 'fh2.cmp-gaming.com:6969'
	list peer 'concen.org:6969'
	list peer 'aegir.sexy:6969'
	list peer 'tracker1.it'mx.com:8080'
	list peer 'canardscitrons.nohost.me:6969'
	list peer 'bvarf.tracker.sh:2086'

## Bind the DHT to this port.
#	option port '6881'

## Limit DHT communication to this interface.
	option ifname 'wan'

## Verbosity: quiet, verbose or debug
	option verbosity 'quiet'

## Local port to accept forwarded requests.
	option dns_port '3535'

## Disable multicast peer discovery on the LAN.
	option lpd_disable '0'

## Disable port forwarding when this router is behind another
## router in a private network that supports UPnP/NAT-PMP.
	option fwd_disable '0'

Hi,

KadNode is for P2P DNS. If you want to have a BitTorrent DHT node that your BitTorrent client can peer with, then I can recommend DHTd (also a OpenWRT package): https://github.com/mwarning/dhtd

KadNode is a bit buggy and currectly lack the motivation to fix it. DHTd on the other side is very stable.

1 Like

Many thanks for your suggestion.. could you pls confirm can i add peer trackers like
list peer 'tracker.tryhackx.org:6969'

yes, 'list peer' is the correct way to add trackers. :slight_smile:

1 Like

Thanks again. also may i know what is the use of hash tag ? do we have to add anything or it will fetch from torrent file..?

alos i have enabled 'option peerfile '/etc/dhtd/peers.txt' file but its not generating.. do i have to create manually?

also can i add UPnP/NAT-PMP here will that make any difference?

sorry to ask so many question.. curiosity to know this..

I am not sure what you mean with hash tag. KadNode is not a BitTorrent client. It uses the DHT network that is also used by BitTorrent.

BitTorrent resolves files hashes to IP addresses to find client that have the file.
KadNode resolves (hashed) domain names (or public keys) to IP addresses so can access it in any way you like. That is what usually the Domain Name System does, but KadNode uses the decentralized DHT network. The server you want the IP address for also need to run KadNode as well to announce the hash.

The '/etc/dhtd/peers.txt' should be written if the folder /etc/dhtd exists.
UPnP/NAT-PMP only makes sense if you run KadNode behind your Internet router. So you probably want to keep it turned off.

I hope that helps :slight_smile:

1 Like

HI @mwarning ,
im asking below one

Add hashes to announce them to the network

list announce '00112233445566778899aabbcceeff0011223344'

That look OK. You should be able to do

ping 00112233445566778899aabbcceeff0011223344.p2p

On some other computer running KadNode (if the DNS module is installed). Or do

kadnode-ctl lookup 00112233445566778899aabbcceeff0011223344
1 Like

Many thanks @mwarning ..
i can see here port is set to 6881. so how it will respond to other ports like 80, 443 etc.. some time peers having different port like open.stealth.si:80. so it will connect to all port or do we have to setup? Kindly help...

also i have enabled the option peerfile '/etc/dhtd/peers.txt'
but i couldnt found Peers.txt file .

Hi @naveen1hot, the peers.txt is written when KadNode run at least 5min and then every 24h or when KadNode exists. The the folder also needs to exist.
I see that you use Windows, which is the OS that I have tested the least - just a warning :smiley:

If you do not provide a port, then the default port for 6881 is used. It is the default port for BitTorrent DHT instances (or KadNode? I have not read the source in a while :P). The DNS interface cannot forward the port, so it is of little use. It is best do just not use it.

Anyway, KadNode needs a few bug fixes that are long overdue. I hope to have some time soonish...