WireGuard / wgctrl-go

Package wgctrl enables control of WireGuard interfaces on multiple platforms.
https://godoc.org/golang.zx2c4.com/wireguard/wgctrl
MIT License
727 stars 85 forks source link

Getting this weird permissions error when using wintun and wireguard go #108

Closed 0xdcarns closed 2 years ago

0xdcarns commented 2 years ago

open .\pipe\ProtectedPrefix\Administrators\WireGuard\: This security ID may not be assigned as the owner of this object.

Has anyone else run into this/is there some sort of security policy change to fix it or something in code to fix it? Does this have to run in a Windows Service potentially?

Steps:

install wintun.dll go build run as standalone Win32 binary (.exe) as admin Create Tunnel with tun.CreateTun(iface, mtu) Create Device with device.NewDevice(...) device.Up() ipc.UAPIListen(iface) -> fails here

Thanks in advance

dosgo commented 1 year ago

So how did you solve this?