Found this cool Python WFP library that makes network filtering super easy in Windows!

Found this cool Python WFP library that makes network filtering super easy

Just discovered PyWFP while looking for a way to handle Windows Filtering Platform in Python. It's pretty neat - lets you create network filters with really simple syntax, similar to Windivert if anyone's familiar with that.

Quick example of what you can do:

```python from pywfp import PyWFP pywfp = PyWFP() filter_string = "outbound and tcp and remoteaddr == 192.168.1.3 and tcp.dstport == 8123"

with pywfp.session(): pywfp.add_filter(filter_string, filter_name="My Filter") ``` The syntax is really straightforward - you can filter by:

* TCP/UDP/ICMP

* IP ranges

* Specific ports

* Inbound/outbound traffic

Been playing with it for a bit and it works great if you need to programmatically manage Windows network filters. Thought others might find it useful!

Link: Github