inspect
WFP流量检查例子
这个例子驱动展示了WFP的流量检查能力。
这个例子驱动拦截所有发出和从一个可配置的远程peer接收到的传输层流量(例如TCP、UDP、noerror ICMP),并把它们queue到一个worker thread以进行out-of-band处理。
inspect.sys检查inbound和outbound连接,以及所有属于这些连接的packets。此外,inspect.sys展示了IPSec兼容性的特别考虑。
Inspect.sys为ALE Connect, Recv-Accept, and Transport callouts实现了ClassifyFn callout函数。此外,执行实际packet检查的系统worker thread,也是以事件机制实现(在classify函数和worker thread间共享)。
系统worker thread用reference-drop-clone-reinject机制和ALE pend/complete机制,来在带外完成Connect/Packet检查。这样,对那些过滤决策无法在’classifyFn()’ callout内完成,而需要在user-mode程序内完成的场景,这个例子提供了很好的基础。
原文如下:
Windows Filtering Platform Traffic Inspection Sample
This sample driver demonstrates the traffic inspection capabilities of the Windows Filtering Platform (WFP).
The sample driver consists of a kernel-mode Windows Filtering Platform (WFP) callout driver (Inspect.sys) that intercepts all transport layer

Inspect.sys示例驱动展示了Windows Filtering Platform的流量检查能力,拦截TCP、UDP、ICMP等传输层流量,并将其发送到worker thread进行带外处理。该驱动还处理ALE连接、接收接受和传输调用,适用于需要在用户模式应用中完成过滤决策的场景。
最低0.47元/天 解锁文章
3631

被折叠的 条评论
为什么被折叠?



