WireGuard 0.3.1 Potential Bug #AddConf

Dennis IT SysAdmin it at fourpeakslandscape.com
Tue Nov 24 23:04:10 CET 2020


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 at 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: it at fourpeakslandscape.com



More information about the WireGuard mailing list