h44z / wg-portal

WireGuard Configuration Portal with LDAP connection
https://wgportal.org/
MIT License
975 stars 128 forks source link

[v2] Keypairs/PublicKey can not be changed #265

Open muellpanda opened 6 months ago

muellpanda commented 6 months ago

When changing keys of a client, the Peer is not updated correctly and is unreachable.

Example:

h44z commented 4 months ago

have you tried to disable and re-enable the peer?

muellpanda commented 4 months ago

I have tried to disable the peer, but it just keeps connected. It is removed correctly from the config, but wireguard itself does not get notified of the change. The peer is still listed with wg show. Restarting wg-portal (docker container) has no effect. I guess #273 is highly related.

ALIP-0 commented 4 months ago

I have tested this and confirm the issue. Also editing the sqlite.db to make the peer identifier match doesnt seem to allow it to work either.