入站内容下载请求的防火墙规则的状态

Microsoft.Windows.BranchCache.HostedCacheClient.Monitor.Firewall.Download (UnitMonitor)

此对象验证 TCP 端口 80 上的入站下载请求的 Windows 防火墙设置,如果不允许此通信,则生成严重健康状况。

Knowledge Base article:

摘要

此监视器验证 Windows 防火墙是否配置为允许 TCP 端口 80 上的入站下载请求,为使网络中的其他计算机(包括托管缓存服务器)能够从此计算机检索内容,此配置是必需的。

原因

如果防火墙阻止 TCP 端口 80 上的入站通信,则管理员或其他进程可能修改了防火墙规则。

解决方案

重要说明!通常使用组策略配置 BranchCache 配置设置。如果使用组策略,请更正 BranchCache 的组策略设置中的问题。由于组策略设置通常会替代以下解决方案步骤中的手动设置,因此这些步骤仅在不使用组策略时有效。

若要验证当前配置,请单击以下任务:

显示 BranchCache 状态

若要创建允许 TCP 端口 80 上的入站通信的 Windows 防火墙规则,请单击以下任务:修复托管缓存客户端配置

您还可以使用管理权限打开命令提示符窗口,并在 netsh branchcache 上下文中运行 set service hostedclient 命令,这将自动创建必要的 Windows 防火墙规则。

有关 netsh branchcache 上下文的详细信息,请参阅 Microsoft TechNet 上的 Windows Server 2008 R2 中适用于 BranchCache 的 Netsh 命令(页面可能为英文)

如果使用了其他防火墙程序,请将相应的防火墙设置修改为允许 TCP 端口 80 上的入站通信。

Element properties:

TargetMicrosoft.Windows.BranchCache.HostedCacheClientNode
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.SingleEventLogManualReset2StateMonitorType
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.BranchCache.HostedCacheClient.Monitor.Firewall.Download" Accessibility="Public" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.BranchCache.HostedCacheClientNode" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.SingleEventLogManualReset2StateMonitorType" ConfirmDelivery="true">
<Category>ConfigurationHealth</Category>
<OperationalStates>
<OperationalState ID="EventRaised" MonitorTypeStateID="EventRaised" HealthState="Error"/>
<OperationalState ID="ManualResetEventRaised" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Property[Type="Microsoft.Windows.BranchCache.ClientSideServiceBase"]/NodeName$</ComputerName>
<LogName>Microsoft-Windows-BranchCache/Operational</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">8</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-BranchCache</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>