Actions
Bug #11288
closedWireguard: Peer PSK is auto-filled to the keepalive field
Start date:
01/22/2021
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.5.0
Affected Architecture:
All
Description
If you configure a PSK on a WireGuard peer and then edit that peer the keep-alive field will be populated by the PSK value.
Updating that peer and saving obviously produces a non loadable conf file:
Jan 22 15:14:33 php-fpm 26466 /vpn_wg_edit.php: The command '/usr/local/bin/wg setconf 'wg0' '/etc/wg/wg0.conf'' returned exit code '1', the output was 'Persistent keepalive interval is neither 0/off nor 1-65535: `gzU4Ry5WXrqPhdFR8YsFg5z/PrnbxDwZLrbh7aK7Xow=' Configuration parsing error'
Tested:
21.02-DEVELOPMENT (amd64) built on Thu Jan 21 00:08:27 EST 2021 FreeBSD 12.2-STABLE
Actions