WFP 驱动翻译第二章-WFP架构

WFP Architecture
The following figure shows the basic architecture of the Windows Filtering Platform
(WFP)
Filter Engine
The filter engine contains a user-mode component and a kernel-mode component,
which together perform all of the filtering operations on network data. The filter engine
contains multiple filtering layers that map loosely to the operating system's networking
stack layers. The filter engine layers are divided into user-mode layers and kernel-mode
layers based on the filter engine component that owns them.
The user-mode component performs RPC and IPsec filtering. The filter engine contains
approximately 10 user-mode filtering layers.
The kernel-mode component performs filtering at the network and transport layers of
the TC/IP stack. This component also calls the available callout functions during the
classification process. The filter engine contains approximately 50 kernel-mode filtering
layers.
See Filtering Layer Identifiers for a description of each of the filter engine layers.
过滤引擎
过滤引擎包含一个用户模式组件和一个内核模式组件,它们共同执行对网络数据的所有过滤操作。过滤引擎包含多个过滤层,这些层与操作系统的网络堆栈层松散映射。过滤引擎的这些层根据所属的过滤引擎组件分为用户模式层和内核模式层。
用户模式组件执行RPC和IPsec过滤。过滤引擎包含大约10个用户模式过滤层。
内核模式组件在TC/IP堆栈的网络层和传输层执行过滤。该组件还在分类过程中调用可用的调用函数。过滤引擎包含大约50个内核模式过滤层。
有关每个过滤引擎层的描述,请参阅过滤层标识符。
Base Filtering Engine
The Base Filtering Engine (BFE) is a user-mode service (bfe.dll running in a svchost.exe
process) that coordinates the WFP components. The principal tasks performed by BFE
are adding and removing filters from the system, storing filter configuration, and
enforcing WFP configuration security. Applications communicate with BFE through the
WFP management functions .
基本过滤引擎
基本过滤引擎(BFE)是一个在用户模式下运行的服务(bfe.dll 在 svchost.exe 进程中),负责协调 WFP 的各个组件。BFE 主要的任务包括从系统中添加和删除filters、存储filter配置,并加强WFP配置安全性。应用程序通过 WFP 管理函数与 BFE 进行通信。
Callout Drivers
Callout drivers provide additional filtering functionality by adding custom callout
functions to the filter engine at one or more of the kernel-mode filtering layers. Callouts
support deep inspection and packet as well as stream modification. After a callout driver
has added its callout functions to the filter engine, filters that specify a given driver's
callout function can be added to the filtering process. Such filters can be added by
either a user-mode management application or by the callout driver itself. The kernel
mode interface, delivered in the Windows Development Kit, should only be used where
needed and not as a substitute for the user-mode API
Note
For more information on callout drivers, see the Windows Filtering Platform section
The Windows Filtering Platform includes a number of built-in callout functions that can
be used for IPsec secure data communication, stateful filtering settings, and stealth
mode filtering. See Built-in Callout Identifiers for a complete list of built-in callout
functions.

 

Callout 驱动
Callout驱动通过将自定义callout函数添加到内核模式的过滤层中,为过滤引擎提供额外的过滤功能。这些Callout支持深度检查、数据包和数据流的修改。Callout驱动将其callout函数添加到过滤引擎后,指定给定驱动的callout函数的过滤器可以被添加到过滤过程中。这样的过滤器可以由用户模式的管理应用程序或callout驱动本身添加。Windows开发工具包中提供的内核模式接口应仅在需要时使用,并不应作为用户模式API的替代品。

WFP包括多个内置的调用函数,可以用于IPsec安全数据通信、有状态过滤设置和隐蔽模式过滤。请参阅内置调用标识符以获取内置调用函数的完整列表。

TDI和WFPWindows操作系统中的两种不同的驱动技术。TDI是Transport Driver Interface的缩写,它在Windows 2000到Windows Vista期间被支持。TDI是一套接口的集合,用于连接用户态的socket和NDIS协议驱动,实现socket的创建、发送和接收数据。\[1\] WFPWindows Filtering Platform的缩写,它是取代TDI的新技术。WFP是一种网络过滤平台,用于在网络数据包传输过程中进行过滤和处理。WFP提供了一种灵活的方式来管理和控制网络流量,可以实现防火墙、入侵检测和网络安全等功能。与TDI相比,WFP提供了更高级的网络过滤和处理功能,并且支持更多的Windows操作系统版本。\[1\] 总结来说,TDI是一种用于连接用户态的socket和NDIS协议驱动的接口集合,而WFP是一种网络过滤平台,用于在网络数据包传输过程中进行过滤和处理。WFP相比于TDI提供了更高级的网络过滤和处理功能,并且支持更多的Windows操作系统版本。 #### 引用[.reference_title] - *1* *2* *3* [Windows网络驱动、NDIS驱动(微端口驱动、中间层驱动、协议驱动)、TDI驱动(网络传输层过滤)、WFPWindows ...](https://blog.csdn.net/zhangge3663/article/details/100918732)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值