Using WireGuard on Windows with no local administrator rights


I’ve recently been helping a non-profit uplift their security – we’ve put in a UniFi Gateway along with cleaning up their 365 tenancy and endpoint management. As part of this, we’ve implemented a WireGuard VPN back to their NAS as well as remove local admin rights from end users. Unfortunately, WireGuard by default requires local admin rights to function, however we can get around this with a few tweaks.

You’ll need to be a local admin to do all this work, you can then lower the user permissions to the Network Configuration Operators builtin group (well-known S-1-5-32-556). This user permission is required to bring the tunnel up and down, it also grants the user the ability to modify local network settings and may prompt UAC for accessing other system components (however permissions will not be elevated).

 reg add HKLM\Software\WireGuard /v LimitedOperatorUI /t REG_DWORD /d 1 /f

Once that registry key is loaded, we can now import our tunnel configuration. Then restart the endpoint. Once back at the desktop, lower the permissions to Network Configuration Operators for that user, logoff and back in – and WireGuard should be in the tray, with the ability to Activate and Deactivate the tunnel, but not edit or import any further configurations.

While it isn’t completly locked down, I’d rather that than give the end users full local administrator rights. Hope that helps someone.


One response to “Using WireGuard on Windows with no local administrator rights”

  1. polakmike Avatar
    polakmike

    Thank you for this post.

Leave a Reply

More Posts

An error has occurred when trying to access IdpInitiatedSignOn.aspx to test SAML authentication on AD FS 4.0 (Windows Server 2016)

So usually one of the first things I do after initially setting up an AD FS environment (among others) is to test the Metadata (navigate to https://your.adfs.server/ federationmetadata/2007-06/federationmetadata.xml which should return valid XML) and sign-in functionality using the IdpInitiatedSignOn.aspx method. For Server 2012/2012 R2 this page enabled by default but if we navigate to this […]

Aruba Switches and Trancievers

Vendors tend to lock down the type of transceivers you can use on their SFP/SFP+ and QSFP ports. They do this for a number of reasons but mainly in the spirit of support and quality (which I can understand). there are a number of guidelines around agreed upon by networking vendors that fall under Multi-Source […]