Remove endpoint
Max Schulze
max.schulze at online.de
Thu Sep 3 18:32:15 UTC 2026
Have you seen
wg set wg0 peer XXX remove
?
Am 03.09.26 um 20:21 schrieb Kent Friis:
> I can specify a peer with no endpoint in wg0.conf. It will then simply
> not have an endpoint until it either receives a packet from the peer,
> or one is specified with wg set ... endpoint ip:port.
>
> Now, I'm on a mobile connection, so when I log off, I want to remove
> the endpoint ip again so the "server" doesn't transmit stray packets
> to a mobile ip address.
>
> I tried
>
> wg set wg0 peer XXX endpoint 0:0
> wg set wg0 peer XXX endpoint off
> wg set wg0 peer XXX endpoint none
> wg set wg0 peer XXX endpoint ""
>
> The first one sets the endpoint to 0.0.0.0 port 0, which is first of
> all, usually treated as a broadcast address, and second, AFAIK there is
> no port zero.
>
> The other three give errors.
>
> How to remove the endpoint while keeping the rest of the configuration?
>
> /Kent
More information about the WireGuard
mailing list