On 3/28/21 12:33 PM, Quentin Bock wrote: > Is it possible to create a firewall inside python and then run that instead > of the windows defender firewall? If so how would that work or how would > that be made?
Probably not. The firewall is part of the kernel since it works directly with the network drivers and the packets in memory (to avoid copying data). MS has an API for interacting with it, and controlling and extending its behavior using an API: https://docs.microsoft.com/en-us/windows-hardware/drivers/network/windows-filtering-platform-architecture-overview This is what third-party firewall managers use. Possibly Python could interact with portions of the firewall engine via the callout API. -- https://mail.python.org/mailman/listinfo/python-list