Development discussion of WireGuard
 help / color / mirror / Atom feed
* [question] wireguard-windows issue
@ 2022-06-09 21:56 enlight
  0 siblings, 0 replies; only message in thread
From: enlight @ 2022-06-09 21:56 UTC (permalink / raw)
  To: wireguard

Hello,

when enabling wireguard kill-switch, it creates aggressive wireguard 
firewall rule on windows, it creates rule on windows filtering platform 
(WFP).  The rule is to block all inbound/outbound traffic not for or 
from wireguard interface.

i want to modify current wireguard wfp rule to premit inbound/outbout 
traffic to additional interfaces,  like vmware interface. There are 
several network interfaces in my system active, like "Yggdrasil" -> 
adapter name in Network and sharing center (it uses wintun driver to 
create).

I tried to modify "wireguard-windows/tunnel/firewall/blocker.go"  inside 
EnableFirewall( ) to add:
```
var adapter *driver.Adapter
var luid2 winipcfg.LUID

adapter, err = driver.OpenAdapter("Yggdrasil")  -> gives error here
luid2 = adapter.LUID()
err = permitTunInterface(session, baseObjects, 12, uint64(luid2))
```

the error is: ```Failed to find matching adapter name: Element not 
found. (Code 0x00000490)
Unable to enable firewall rules: Firewall error at 
golang.zx2c4.com/wireguard/windows/tunnel/firewall/blocker.go:148: 
Element not found.```

how can i solve the issue ?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-17 11:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09 21:56 [question] wireguard-windows issue enlight

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).