WireGuard / wireguard-vyatta-ubnt

WireGuard for Ubiquiti Devices
https://www.wireguard.com/
GNU General Public License v3.0
1.46k stars 68 forks source link

wireguard-vyatta-ubnt preshared-key #85

Closed RealMuhko closed 1 year ago

RealMuhko commented 3 years ago

Hello.

EdgeRouter X v2 wireguard-vyatta-ubnt version: e50-v2-v1.0.20210219-v1.0.20210315.deb

I am wondering if the wireguard-vyatta-ubnt application does not support preshared-key function ?

I can set the private-key with "set interfaces wireguard wg0 private-key "

But I can not set the preshared-key with "set interfaces wireguard wg0 preshared-key "

Thanks in advance!

Best Regards From

Martin Brandt.

dc361 commented 3 years ago

HI @RealMuhko

The preshared-key attribute goes with the peer definition so you can have a unique preshared key for each peer. The Edgerouter syntax would be as follows:

set interfaces wireguard wg0 peer zaaaaabbbcccwwwhateverw4Yido3ueQasdfaso= preshared-key 44character32bytebase64key

boteman commented 1 year ago

Can this ticket be closed?