stacks-core icon indicating copy to clipboard operation
stacks-core copied to clipboard

P2P: UPnP support for Stacks nodes

Open jcnelson opened this issue 4 years ago • 4 comments

At some point, we will want it to be possible for Stacks nodes to register themselves on home networks and serve blocks and transactions to not only local clients, but also to public clients beyond the NAT. But to do that automatically, the Stacks node needs to implement enough of the UPnP protocol in order to set up port-forwarding rules for itself on the home router.

jcnelson avatar Jul 20 '20 16:07 jcnelson

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 16 '21 17:01 stale[bot]

Not stale. This is important for the health of the network. Some blockchains use https://github.com/miniupnp/miniupnp with success. I haven't had luck finding robust rust libs yet.

zone117x avatar Jan 16 '21 22:01 zone117x

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 16 '21 11:07 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 12 '22 01:08 stale[bot]

This issue has been automatically closed. Please reopen if needed.

stale[bot] avatar Oct 01 '22 03:10 stale[bot]

Temporarily assigning to @zone117x so this has an owner. Please feel free to re-assign as you see fit.

I'm not sure this issue is necessary? The network code already gives NAT'ed nodes the ability to:

  • announce neighbors to upstream peers
  • serve blocks, microblocks, and transactions to upstream peers
  • (future) serve StackerDB data to upstream peers

In other words, I think the network protocol removes the need for a user to punch a hole in their NAT. If you agree, please feel free to close.

jcnelson avatar Feb 22 '23 03:02 jcnelson