Open idan1109 opened 2 years ago
i've seen the pull request. After updating the compose.go file i changed my code into this:
{
Field: wf.FieldIPRemoteAddress,
Op: wf.MatchTypeRange,
Value: wf.Range{From: iprange.From(), To: iprange.To()}, // IP Range
},
Still no luck. I've seen also the microsoft blog where someone asked about this:
According to the Doc: FWP_MATCH_TYPE enumeration
The value data type and the filter condition data type must be the same. The Base Filtering Engine (BFE) does not perform any data conversion.
An FWP_UINT32 field that contains an IPv4 address can be compared with an FWP_V4_ADDR_MASK value.
Only sortable data types support FWP_MATCH_RANGE. Sortable data types consist of all integer types, FWP_BYTE_ARRAY16_TYPE, FWP_BYTE_BLOB_TYPE, and FWP_UNICODE_STRING_TYPE.
This is my first week of learning about golang so i cannot really help much more than that
First of all thank you for this beautiful package! I think i've found a problem when trying to set an ip range
Cannot add rule: (0x1bada0,0xc00032b120)