Remove endpoint

Kent Friis leeloored at gmx.com
Thu Sep 3 18:40:30 UTC 2026


That removes the entire peer, not just the endpoint.

On Thu, 3 Sep 2026 20:32:15 +0200
Max Schulze <max.schulze at online.de> wrote:

> 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