`nmcli connect up -a` does not work with WireGuard
Hey!
When configuring a connection with "ask password everytime" and bringing it up with nmcli connect up -a
, WireGuard tunnel is not setup correctly.
To reproduce:
- configure
wireguard.private-key-flags
to 2 (ask everytime) - bring up the connection with
-a
- input the private key when prompted
- check with
wg
that a peer has been configured
In my case, the output of wg
shows that no peer has been configured. Using passwd-file
leads to the same issue. I suppose that at some point in the code, the Wireguard code checks if it knows the private key before validating peers and before asking for it.
Reproduced on Network Manager 1.32.12 on Debian unstable.