Strange behavior when a peer has the same key as the interface

Jason A. Donenfeld Jason at
Sun Sep 5 20:54:11 UTC 2021

On Sun, Sep 5, 2021 at 10:27 PM Vojtěch Káně <vojtech.kane at> wrote:
> > This is by design across all implementations, so that multiple peers can share the same stanzas after the [Interface] section.
> Does that mean it's unfixable in the meaning you cannot detect it and
> return appropriate error?
> While being clearly my mistake, it took me multiple hours to understand
> the problem instead of simply getting `cannot set peer foo as it already
> is a public key of interface bar`.

It sounds like we really need to document that in more obvious places,
like wg(8), as that kind of confusion indeed must have been really


More information about the WireGuard mailing list