donaldzou / WGDashboard

Simple dashboard for WireGuard VPN written in Python & Vue.js
https://donaldzou.github.io/WGDashboard-Documentation/
Apache License 2.0
1.63k stars 248 forks source link

PresharedKey not added in WG server conf #498

Closed guiaume closed 6 days ago

guiaume commented 6 days ago

Describe The Problem When adding a new peer with a PresharedKey, this PresharedKey is added in the client configuration, but not in the server configuration This concerns both the addition of a simple client or the mass addition On the other hand, if you disable access for this peer, then re-enable it, the PresharedKey will be added. This requires you to restrict access and then re-authorize access each time you create a new peer

Expected Error / Traceback

...

To Reproduce Just add a new peer, then check the wireguard conf file, you'll see the the new peer, but without the PresharedKey

OS Information:

Sample of your .conf file

[Interface]
Address = 10.0.5.1/24
SaveConfig = true
PostUp = ...
PostDown = ...
ListenPort = ...
PrivateKey = ...

# [New peer just added]
[Peer]
PublicKey = ...
AllowedIPs = 10.0.5.30/32
donaldzou commented 6 days ago

Hi! Can you try to stop WGDashboard, then git pull and restart and see if this issue is solved?

We just fixed this issue earlier today :)

guiaume commented 6 days ago

Yes, indeed, it is fixed, I was just doing that because in the meantime I saw that there was a branch fix-preshared-key. Sorry, I had not searched enough before posting. Thank you, and by the way congratulations for this great project.

donaldzou commented 6 days ago

No problem! We should’ve posted a small release but wanna wait for few other buys to get fixed before doing that.

I’m glad you like this project :)

Get Outlook for iOShttps://aka.ms/o0ukef


From: Guillaume @.> Sent: Saturday, November 16, 2024 1:57:09 AM To: donaldzou/WGDashboard @.> Cc: Donald Zou @.>; Comment @.> Subject: Re: [donaldzou/WGDashboard] PresharedKey not added in WG server conf (Issue #498)

Yes, indeed, it is fixed, I was just doing that because in the meantime I saw that there was a branch fix-preshared-key. Sorry, I had not searched enough before posting. Thank you, and by the way congratulations for this great project.

— Reply to this email directly, view it on GitHubhttps://github.com/donaldzou/WGDashboard/issues/498#issuecomment-2479611954, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGARNUKLZXYTCTV6QM73CIL2AYYXLAVCNFSM6AAAAABR3M75DOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZZGYYTCOJVGQ. You are receiving this because you commented.Message ID: @.***>