ip netns del zaps wg link

Michael Tokarev mjt at tls.msk.ru
Sat Jul 15 04:48:48 UTC 2023


15.07.2023 00:48, Harry G Coin wrote:
..

> [] allowing wireguard interfaces to behave 
> like all other interfaces when a namespace is destroyed  (moving back to the namespace where it was born and to which it retains connection anyhow) 

The thing is that all interface types behave like this when a network namespace is removed:
they're destroyed together with the namespace.  All which can be deleted anyway, for which
an `ip link del' command works, - like, physical NICs are the only exception here b/c you
can't remove a physical NIC from a physical machine this way.

So in this context, wg interfaces are *already* behaving like all other virtual interfaces,
and this is done by linux network/namespace subsystem, not by wireguard.

/mjt


More information about the WireGuard mailing list