While setting up the VPN and also working on creating a powershell module for setup, I went through to test the components in wg.exe, and I noticed an issue with addconf which is supposed to allow appending to a current configuration:
Several scenarios tested- Windows ( Under an admin (not system) account where config was created (not created using system account): [ PS C:\Program Files\WireGuard> wg addconf WireGuard 'C:\Program Files\WireGuard\Data\Configurations\WireGuardVPN.conf.dpapi' fopen: Permission denied ] Windows ( Under SYSTEM account where config was NOT created (using PSTools to get into SYSTEM environment): [ PS C:\Program Files\WireGuard> wg addconf WireGuard 'C:\Program Files\WireGuard\Data\Configurations\WireGuardVPN.conf.dpapi' Line unrecognized: `' Configuration parsing error ] DebianServer ( Under SU account where config was created & under USER account where config was NOT created - Same result ): [ root@unix:/home/system# wg addconf WireGuard /etc/wireguard/wg0.conf Line unrecognized: `Address=172.10.10.1/24' Configuration parsing error ] Thanks, Dennis Fair | I.T Systems Admin Four Peaks Landscape Management p: 480-967-0376 | f: 480-967-0406 m: 480-319-5345 e: [email protected]
