挂起的 DNS 名称解析请求数超过了系统定义的最大值

Microsoft.Forefront.TMG.The_number_of_pending_DNS_name_resolution_requests_exceeds_the_system_defined_maximum.Rule (Rule)

如果挂起的 DNS 名称解析请求数超过了系统定义的最大值,此规则将生成警报

Knowledge Base article:

摘要

TMG 服务器拒绝了需要 TMG 服务器发送 DNS 名称解析请求的新连接,原因是相对于可用线程总数,挂起的 DNS 名称解析请求数超过了系统定义的最大值。

原因

发生了对随机 IP 地址的淹没攻击或蠕虫传播。 如果有策略规则限制对一个或多个由域名指定的目标进行访问,则每个连接请求均要求使用反向 DNS 查找。 此外,需要 TMG 服务器发送 DNS 名称解析请求的连接请求可能出现了合法激增,或者 TMG 服务器计算机的容量可能不适合于该网络配置。

解决方法

请执行下列步骤。

外部

有关 TMG 服务器淹没复原的详细信息,请参阅产品文档

Element properties:

TargetMicrosoft.Forefront.TMG.Server
CategoryEventCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Forefront.TMG.Rule.AlertGenerate.DS Default
WA WriteAction Microsoft.Forefront.TMG.Rule.AlertGenerate.WA Default

Source Code:

<Rule ID="Microsoft.Forefront.TMG.The_number_of_pending_DNS_name_resolution_requests_exceeds_the_system_defined_maximum.Rule" Enabled="true" Target="Microsoft.Forefront.TMG.Server" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Forefront.TMG.Rule.AlertGenerate.DS">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<EventsPattern>^(21279)$</EventsPattern>
<EventType>1</EventType>
<SourcePattern>Microsoft Forefront TMG Firewall</SourcePattern>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Forefront.TMG.Rule.AlertGenerate.WA">
<AlertMessageId>$MPElement[Name="Microsoft.Forefront.TMG.The_number_of_pending_DNS_name_resolution_requests_exceeds_the_system_defined_maximum.AlertMessage"]$</AlertMessageId>
<DomainName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/DomainDnsName$</DomainName>
<Priority>1</Priority>
<Severity>2</Severity>
</WriteAction>
</WriteActions>
</Rule>