Remove endpoint

Kent Friis leeloored at gmx.com
Thu Sep 3 18:21:33 UTC 2026


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