wgrest
wgrest copied to clipboard
Manage peers by name?
Would be a pretty cool feature, especially if your not the only one using it.
@HyptexPvP Hi, could you please describe the use case in detail with some examples? Thanks.
@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
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!