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

[FEAT] Option to disable PRESHARED KEY #354

Closed
1 task done
Danieldiazi opened this issue Sep 6, 2024 · 3 comments
Closed
1 task done

[FEAT] Option to disable PRESHARED KEY #354

Danieldiazi opened this issue Sep 6, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Danieldiazi
Copy link

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Hi
I've a SLZB-06M device (https://smlight.tech/product/slzb-06m/) , and this device in his VPN configuration doesn't support "Preshared key" option (PreSharedKey)
imagen

In order to use wireguard, I'm been able to connect to vpn if I use the 2020 container version "amd64-v1.0.20200827-ls12". This wireguard container version (lscr.io/linuxserver/wireguard:amd64-v1.0.20200827-ls12) doesn't has "preshared key" and then works with this device.

I wonder if it's possible to have a option to disable "PRESHARED KEY" and then, this device can use the newest wireguard version.

Maybe this feature is very important regarding security and cannot be removed under any circumstances?

Reason for change

To support SLZB-06M devices without preshared key option

Proposed code change

No response

@Danieldiazi Danieldiazi added the enhancement New feature or request label Sep 6, 2024
Copy link

github-actions bot commented Sep 6, 2024

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@aptalca aptalca self-assigned this Sep 6, 2024
@aptalca
Copy link
Member

aptalca commented Sep 6, 2024

There is no way to disable it, but you can fake trigger the backwards compatibility. When we added preshared keys, we put in a mechanism to skip generating a preshared key for existing confs so as not to break it for existing users: https://github.com/linuxserver/docker-wireguard/blob/master/root/etc/s6-overlay/s6-rc.d/init-wireguard-confs/run#L80

Try deleting everything from the peer's conf folder except for the private key. Then delete the server's wg0.conf and restart the container. It should generate a conf for that peer without a preshared key.

@Danieldiazi
Copy link
Author

There is no way to disable it, but you can fake trigger the backwards compatibility. When we added preshared keys, we put in a mechanism to skip generating a preshared key for existing confs so as not to break it for existing users: https://github.com/linuxserver/docker-wireguard/blob/master/root/etc/s6-overlay/s6-rc.d/init-wireguard-confs/run#L80

Try deleting everything from the peer's conf folder except for the private key. Then delete the server's wg0.conf and restart the container. It should generate a conf for that peer without a preshared key.

Thanks for the support, I'll try it. In addition SLZB-06M device support have just indicated "preshared key" option will be included into a new firmware version of their device, great news too!

Thanks again for your reply, it has been very useful to me, I am closing this issue.

@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Sep 6, 2024
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
Development

No branches or pull requests

2 participants