Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Setup not possible without Preshared Key #34

Closed
okastl opened this issue Apr 7, 2022 · 1 comment
Closed

Server Setup not possible without Preshared Key #34

okastl opened this issue Apr 7, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@okastl
Copy link

okastl commented Apr 7, 2022

Hi, it is my understanding, that usage of a Preshared Key in server and client configuration is optional in Wireguard.
But I can't try it, as WireGuardServerForWindows doesn't allow to setup configuration without Preshared Key.
It would be nice, if Preshared Key could be optional.

@micahmo micahmo added the enhancement New feature or request label Apr 7, 2022
@micahmo micahmo added this to the v1.7.7 milestone May 12, 2022
@micahmo
Copy link
Owner

micahmo commented May 14, 2022

Hey @okastl, thanks for bringing this up! I realized that not only should WS4W not require preshared keys (because they're optional, like you said), but the way they were configured was totally wrong.

Instead of preshared keys being something you generate once for the server and copy to all clients, they should be generated uniquely for each client, and the server should be aware of each client's PSK (if any).

This has been fixed in the latest release, v1.7.7. I verified that upgrades from pervious versions work fine too, but for anyone who had used the previous versions and configured multiple clients, it might be a good idea to go in again and generate new PSKs for each client; otherwise, they will all be using the same one.

@micahmo micahmo closed this as completed May 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants