innernet icon indicating copy to clipboard operation
innernet copied to clipboard

Problem managing peers

Open cdspacedos opened this issue 3 years ago • 2 comments

Hello All,

Is there any document describing the details of the peer management? I'm testing the innernet functionality, and while I can add the peer (which automatically allocates an IP from the available CIDR), and disable it, I'm not sure how to delete the peer and release the previously used IP.

cdspacedos avatar Apr 08 '22 10:04 cdspacedos

You can't release the previously used address; see https://github.com/tonarino/innernet#enablingdisabling-peers

For security reasons, IP addresses cannot be re-used by new peers, and therefore peers cannot be deleted. However, they can be disabled. Disabled peers will not show up in the list of peers when fetching the config for an interface.

Disable a peer with

sudo innernet disable-peer <interface>

Or re-enable a peer with

sudo innernet enable-peer <interface>

Once you run one of the above commands, you pick the peer to disable/enable from a list.

bensteinberg avatar Apr 10 '22 14:04 bensteinberg

At this point I think I'm going to write a fork of innernet which allows for deletion of peers.

maaft avatar Apr 27 '22 14:04 maaft