wf
wf copied to clipboard
Package for controlling the Windows firewall (aka Windows Filtering Platform, WFP)
In go1.20, `//go:notinheap` pragma will be removed, see mode details at these CLs stack: https://go-review.googlesource.com/c/go/+/421878 `//go:notinheap` was first introduced for using internally in runtime package only, user code should not...
First of all thank you for this beautiful package! I think i've found a problem when trying to set an ip range ``` // Get the absolute path of the...
WFP provides access to TOKEN_ACCESS_INFORMATION structs in some filters. This is a standard winnt.h struct, so it should be exposed by x/sys/windows. For now, there's just a placeholder in this...
### Issue Intermittently getting "fatal error: bulkBarrierPreWrite: unaligned arguments" ``` fatal error: bulkBarrierPreWrite: unaligned arguments goroutine 25 [running]: runtime.throw({0x198cc6f?, 0x0?}) C:/Program Files/Go/src/runtime/panic.go:1047 +0x65 fp=0xc0007d2a20 sp=0xc0007d29f0 pc=0xb39225 runtime.bulkBarrierPreWrite(0xc0007d2ab8?, 0x4b?, 0xc000015040?) C:/Program...
I'm trying to create a rule with 1000 conditions but I'm getting an error from the allocation in the arena implementation since the memory required by the 1000 conditions is...
Do you have any information on what exactly `dataTypeBitmapIndex` is? I can't find the corresponding definition in MSDN at all. It doesn't appear in the `FWP_DATA_TYPE` [documentation](https://learn.microsoft.com/en-us/windows/win32/api/fwptypes/ne-fwptypes-fwp_data_type). We recently hit...
In the result of list-rules, the weight/KernelID is not right due to this issue.
Hey First thank for these module, could u help me I just want to allow inbound traffic for my app. It returns no error but i dont see the rule...
I can't create a rule with the FieldALEUserID field ``` sd, err := windows.SecurityDescriptorFromString("O:S-1-5-21-4178385778-218860893-2165782238-1001") if err != nil { fmt.Println("SecurityDescriptorFromString") return err } err = session.AddRule(&wf.Rule{ ID: wf.RuleID(convert.StringToGUID(DNSID)), Name: "Kodi...