KadNode
KadNode copied to clipboard
Publishing addresses for other nodes
The FAQ includes
Can annoucements be made for other nodes? ... No
Assuming I understood that correctly, what are the pros of this decision? I'm interested in setting up a node and this seems like a really cool project, but here are some things that KadNode can't do because of this that are important use cases for me:
- Publish a website I have on a shared hosting provider which doesn't allow me to install/run software
- Publish addresses for resources on IPFS, DAT, I2P, etc
- Run KadNode on a server that doesn't have an interface with a public address. (edit: when not using upnp)
Thanks for your interest in this side project. :-)
Well, the uses DHT takes the announcements IP address from the senders IP address. Otherwise someone could use the DHT to direct traffic to some target IP address to cause a DOS attack.
While this could be worked around by signing announcements, the BitTorrent DHT forces this approach.
As for the three points you make:
- I agree, that is not possible.
- Agreed. The resources must be accessible via the IP address of the server running KadNode.
- That is possible (even without upnp). The announcements source IP address is the public IP address of the Internet gateways IP address. So if you have a webserver running on the gateway, or on another server behind the gateway with a port redirect, then that scenario will work.
An alternative approach would be to use a different DHT network to store signed announcements. But that's not what the DHT network KadNode uses can provide (if I am not mistaken).
So can KadNode work in combination with IPFS? Can KadNode replace IPNS?
@danger89 it can replace IPNS, but drawback here is that every node you want to reach has to run KadNode as well.
That said, I think the DHT could be modified, to store signed data. But that might create a distinct DHT network (which also would be much faster because it happens to be small).