FWPS_LAYER_ALE_CONNECT_REDIRECT_Vx层是否支持数据流? [英] Does the FWPS_LAYER_ALE_CONNECT_REDIRECT_Vx layer support data flows?
问题描述
我有一个FWPS_LAYER_ALE_CONNECT_REDIRECT_Vx标注,旨在将UDP流量重定向到本地服务。 我在FWPM_LAYER_ALE_FLOW_ESTABLISHED_Vx层注册另一标注,创建一个流上下文和同事这方面,比如
中的以下内容:
I have a FWPS_LAYER_ALE_CONNECT_REDIRECT_Vx callout intended to redirect UDP traffic to a local service. I have another callout registered at the FWPM_LAYER_ALE_FLOW_ESTABLISHED_Vx layer that creates a flow context and associates this context like the following:
状态= FwpsFlowAssociateContext0(
&NBSP ;      inMetaValues-> flowHandle,
       FWPS_LAYER_ALE_CONNECT_REDIRECT_V4,
 &NBSP ;     gConnectRedirectCalloutId,
      (UINT64)CTX
   &NBSP ; );
status=FwpsFlowAssociateContext0(
inMetaValues->flowHandle,
FWPS_LAYER_ALE_CONNECT_REDIRECT_V4,
gConnectRedirectCalloutId,
(UINT64)ctx
);
我的测试程序创建一个UDP套接字,然后发送3个数据报,每个数据报到不同的目标地址。因此,FWPS_LAYER_ALE_CONNECT_REDIRECT_Vx callout被调用3次,但flowContext参数始终为零,尽管在第一次调用之后创建了流
上下文并正确关联。请指教。
My test program creates a UDP socket and then sends 3 datagrams, each one to a different destination address. As a result FWPS_LAYER_ALE_CONNECT_REDIRECT_Vx callout is called 3 times but the flowContext argument is always zero despite the fact that the flow context was created and properly associated after the first call. Please advice.
推荐答案
FWPS_LAYER_ALE_CONNECT_REDIRECT_V {4 |在FWPS_LAYER_ALE_FLOW_ESTABLISHED_V {4 |之前调用6} 6}。 重定向在流程期间保持不变。 这意味着一旦流动重定向,然后你会看到标准的
分类链(FWPS_LAYER_ALE_AUTH_CONNECT_V {4 | 6},FWPS_LAYER_ALE_FLOW_ESTABLISHED_V {4 | 6},FWPS_LAYER_DATAGRAM_DATA_V {4 | 6},FWPS_LAYER_OUTBOUND_TRANSPORT_V {4 | 6},等... ...
希望这会有所帮助,
FWPS_LAYER_ALE_CONNECT_REDIRECT_V{ 4 | 6 } is invoked prior to FWPS_LAYER_ALE_FLOW_ESTABLISHED_V{ 4 | 6 }. The redirection is persistent for the duration of the flow. This means that once the flow is redirected, you will then see the standard classification chain (FWPS_LAYER_ALE_AUTH_CONNECT_V{ 4 | 6 }, FWPS_LAYER_ALE_FLOW_ESTABLISHED_V{ 4 | 6 }, FWPS_LAYER_DATAGRAM_DATA_V{ 4 | 6 }, FWPS_LAYER_OUTBOUND_TRANSPORT_V{ 4 | 6 }, etc ...
Hope this helps,
这篇关于FWPS_LAYER_ALE_CONNECT_REDIRECT_Vx层是否支持数据流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!