remove peer endpoint

em12345 em12345 at web.de
Sat Dec 28 21:53:26 CET 2019


Hi,

how about setting the peers endpoint to any local IP (127.0.99.1)?
I'm setting the peers endpoint initially to 127.0.1.1, and only later I
resolve the hostname of the endpoint and update to that IP.
Because in my case I need more control of the resolving process, than
standard "wg" supplies.


--
Emmanuel



On 2019-12-27 19:28, Devin Smith wrote:
> 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>].
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Friday, December 27, 2019 10:51 AM, Lonnie Abelbeck <lists at lonnie.abelbeck.com> wrote:
>
>>> On Dec 27, 2019, at 9:51 AM, Devin Smith devinrsmith at protonmail.com wrote:
>>> 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` ...
>>
>> Yes, this works:
>>
>> -------------------
>>
>> wg set <interface> peer <base64-public-key> remove
>> --
>>
>> If you forget, "wg set --help" will remind you.
>>
>> Lonnie
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>


More information about the WireGuard mailing list