WireGuard / wireguard-vyatta-ubnt

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

Issue with preshared-key flag #46

Closed mdnn closed 3 years ago

mdnn commented 3 years ago

When I set on my router's config peer section preshared-key = test, i have an error :

set interfaces wireguard wg0 peer jdhfjfksdHJVHFYJKkk= preshared-key test Warning: 'test' lies outside of /config/auth directory. It will not get preserved during image upgrade.

I tried to set it in "config tree", i have an error too :

Unspecified COMMIT error

FossoresLP commented 3 years ago

WireGuard seems to be looking for a file containing the PSK instead of reading the key directly from the input. Please try creating a file containing your PSK in /config/auth/ and entering the path to that file in the command.

mdnn commented 3 years ago

I tried this command : "wg genpsk > presharedkey" in /config/auth/ and entered the path to that file. It's working successfully. Thank you.