Wireguard: Peer PSK is auto-filled to the keepalive field
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'
21.02-DEVELOPMENT (amd64) built on Thu Jan 21 00:08:27 EST 2021 FreeBSD 12.2-STABLE
#1 Updated by Viktor Gurov 3 months ago
#5 Updated by Jim Pingle 3 months ago
- Status changed from Resolved to Feedback
I found a typo in the variable name used to populate the value in the GUI, but the backend appears to be using it appropriately. Commit coming momentarily.
I'm not sure if
wg is supposed to print that value or not, but it does appear in the configuration in