Remove endpoint
wireguard at noci-ict.nl
wireguard at noci-ict.nl
Thu Sep 3 20:19:59 UTC 2026
Why would you want that.....
If the endpoint (your mobile) stops transmitting then after the timeout time
there will be no more packets.... from anywhere.
Mostly the clients will be on the mobile,
so after stopping sessions packets should stop.
And the system will ONLY respond to valid packets, port scanning will be hard
to do. No response until a valid packet arrives to setup a connection.
So if you setup timeout to be a low value (10-20 seconds or so, assuming your
regular roundtrip time would be <5 seconds) there at most 10 seconds of traffic
left.
Kind regards.
On Thursday, 3 September 2026 20:21:33 CEST Kent Friis wrote:
> 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