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

[Feature request]: 为WireGuard配置添加UI的PresharedKey支持 #5359

Open
1 task done
TOA-HI opened this issue Jul 14, 2024 · 7 comments
Open
1 task done

[Feature request]: 为WireGuard配置添加UI的PresharedKey支持 #5359

TOA-HI opened this issue Jul 14, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@TOA-HI
Copy link

TOA-HI commented Jul 14, 2024

相关问题

请求在“添加WireGuard服务器配置”界面,添加PresharedKey选项

描述你希望的解决方案

请求在“添加WireGuard服务器配置”界面,添加PresharedKey选项

描述你所考虑的替代方案

PreshareKey功能已被singbox支持,已尝试直接修改config.json添加,但似乎会被复写掉

我确认已查询历史issues

@TOA-HI TOA-HI added the enhancement New feature or request label Jul 14, 2024
@TOA-HI
Copy link
Author

TOA-HI commented Jul 14, 2024

@2dust
Copy link
Owner

2dust commented Jul 25, 2024

PresharedKey 的作用是什么?

@TOA-HI
Copy link
Author

TOA-HI commented Jul 25, 2024

PresharedKey 的作用是什么?

个人理解为是wireguard的一种提高安全性能的方法,主要目的是对抗后量子时代的量子破解(虽然短期意义不大就是了(1)),因为wireguard相对v2r之类的,更注重安全性,虽然特征很明显。这个我认为是设计理念的区别

关于feature request,我的理解是singbox内核支持调用wireguard的配置,同时singbox支持读取带有preshared key的配置文件(2),但是v2rayn似乎并不支持preshared key的配置的调用和保存(可能描述不太准确)。我尝试了直接修改guiConfigs/config.json,直接添加preshared key的配置,但似乎每次启动v2rayn,v2rayn就会把preshared key相关设置给删除(复写)掉。

(1)引用“https://www.wireguard.com/protocol/

If an additional layer of symmetric-key crypto is required (for, say, post-quantum resistance), WireGuard also supports an optional pre-shared key that is mixed into the public key cryptography. When pre-shared key mode is not in use, the pre-shared key value used below is assumed to be an all-zero string of 32 bytes.”

(2)参考https://sing-box.sagernet.org/configuration/outbound/wireguard/

@TOA-HI TOA-HI closed this as completed Jul 25, 2024
@TOA-HI TOA-HI reopened this Jul 25, 2024
@2dust
Copy link
Owner

2dust commented Jul 26, 2024

主要目的是对抗后量子时代的量子破解

这个是不是考虑的有点多了?

@TOA-HI
Copy link
Author

TOA-HI commented Jul 26, 2024

主要目的是对抗后量子时代的量子破解

这个是不是考虑的有点多了?

的确是这个理,属于是短时间内用不到的功能......不过考虑到singbox内核上已经支持了,想建议的只是UI,配置文件的兼容之类的。因此我提交的也只是个Feature request。算是一个让软件会更方便修改和调用wireguard相关的feature吧,大佬辛苦了

@josephw1122
Copy link

I cannot connect to existing Wireguard configurations due to the missing Pre-shared Key setting.

@lhshuasheng
Copy link

我的也是,由于缺少PresharedKey,连接不上WireGuard

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

4 participants