<div dir="auto">I'm interested to learn, why would you want such a thing? The endpoint field is only ever a "hint" anyway, due to the roaming.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 28, 2019, 13:12 Devin Smith <<a href="mailto:devinrsmith@protonmail.com">devinrsmith@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If I'm not mistaken, `wg set <interface> peer <base64> remove` removes the whole peer - I'm looking to remove just the peer's endpoint attribute [endpoint <ip>:<port>].<br>
<br>
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
On Friday, December 27, 2019 10:51 AM, Lonnie Abelbeck <<a href="mailto:lists@lonnie.abelbeck.com" target="_blank" rel="noreferrer">lists@lonnie.abelbeck.com</a>> wrote:<br>
<br>
> > On Dec 27, 2019, at 9:51 AM, Devin Smith <a href="mailto:devinrsmith@protonmail.com" target="_blank" rel="noreferrer">devinrsmith@protonmail.com</a> wrote:<br>
> > Is it possible to remove the endpoint of a peer via the `wg set` command? All of the other peer attributes (preshared-key, persistent-keepalive, allowed-ips) are removable in this fashion (and documented in the man page). I've tried `wg set <interface> peer <base64-public-key> endpoint 0` ...<br>
><br>
> Yes, this works:<br>
><br>
> -------------------<br>
><br>
> wg set <interface> peer <base64-public-key> remove<br>
> --<br>
><br>
> If you forget, "wg set --help" will remind you.<br>
><br>
> Lonnie<br>
<br>
<br>
_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank" rel="noreferrer">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div>