wgrest icon indicating copy to clipboard operation
wgrest copied to clipboard

Manage peers by name?

Open HyptexPvP opened this issue 3 years ago • 2 comments
trafficstars

Would be a pretty cool feature, especially if your not the only one using it.

HyptexPvP avatar May 14 '22 16:05 HyptexPvP

@HyptexPvP Hi, could you please describe the use case in detail with some examples? Thanks.

suquant avatar May 15 '22 08:05 suquant

@HyptexPvP Hi, could you please describe the use case in detail with some examples? Thanks.

Essentialy, you have friend1 and friend2, you wanna remove friend2 without guessing or accidently screwing friend1's peer. Something like that

HyptexPvP avatar May 15 '22 17:05 HyptexPvP

Hey @HyptexPvP

Right now, WGRest sticks to a very simple and modular approach, focusing primarily on the core functionalities of WireGuard. This means it doesn't directly support managing peers by names like 'friend1' or 'friend2'.

However, you've got a good point about making peer management more user-friendly. A workaround for this could be to implement a layer on top of WGRest where you maintain aliases or friendly names for your peers. This could be a simple mapping system in your external management script or tool where 'friend1' maps to a specific public key, and 'friend2' to another.

This way, you can handle operations like removing 'friend2' without having to directly interact with the peer's public key, minimizing the risk of accidentally removing the wrong peer.

I hope this suggestion helps!

suquant avatar Nov 09 '23 13:11 suquant