v2rayN icon indicating copy to clipboard operation
v2rayN copied to clipboard

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

Open TOA-HI opened this issue 1 year ago • 8 comments

相关问题

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

描述你希望的解决方案

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

描述你所考虑的替代方案

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

我确认已查询历史issues

  • [X] 是

TOA-HI avatar Jul 14 '24 19:07 TOA-HI

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

TOA-HI avatar Jul 14 '24 19:07 TOA-HI

PresharedKey 的作用是什么?

2dust avatar Jul 25 '24 02:07 2dust

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 avatar Jul 25 '24 17:07 TOA-HI

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

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

2dust avatar Jul 26 '24 03:07 2dust

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

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

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

TOA-HI avatar Jul 26 '24 03:07 TOA-HI

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

josephw1122 avatar Aug 04 '24 08:08 josephw1122

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

lhshuasheng avatar Aug 14 '24 13:08 lhshuasheng

确实如此。我在群晖的Docker里安装了weejewel的wg-easy,可以生成节点。它生成的节点里有PresharedKey。V2rayN就无法导入这个节点。 而Nekobox因为支持PresharedKey,可以顺利导入节点并连通。

depotcf avatar Oct 24 '24 02:10 depotcf