Google windows 实例不启用 445/139 端口,即使防火墙规则被定义为允许

Google windows instance not enabling 445/139 port even though firewall rule is defined to allow

我正在创建一个 google windows 实例,我需要为其启用 SMB [文件和打印机共享] 445 和 139 端口。 我在 "VPC Network" 下创建了一个防火墙规则 => 防火墙规则

但仍然创建了 windows 实例没有启用 445 或 139 端口。

防火墙规则如下:

"默认允许 smb 入口 适用于全部
IP 范围:0.0.0.0/0 tcp:445,139 允许 65534 默认

当我通过 RDP 登录 windows 实例并检查 "Control Panel" => 系统和安全 => Windows 防火墙 => 高级设置 => 入站规则:"File and Printer Sharing" (SMB-in) 仅显示 DISABLED。

已在 google 云控制台上创建 google windows 实例,在网络详细信息下显示 "default-allow-smb" 防火墙规则。 Firewall Rule is as below

Firewall Rule details

Windows Google Compute Engine VM 实例中的环境

我正在使用 Windows Server 2019 Datacenter 具有桌面体验的服务器,基于 20190910 Google Compute Engine VM 实例构建的 x64

I used Microsoft documentation and followed the steps to open the firewall ports to enable file and printer sharing. Currently for me, File and Printer Sharing (SMB-In) is disabled. However, there is an "Enable Rule" button on the right-hand side that you can click on to enable the rule.

Then, it should enable the rule, just like it shows here:

As you can see Enabled field is set to Yes

您的 Google Compute Engine VM 实例的防火墙规则

If you would like to double check whether you properly set up your Firewall Rules, you could check How to open a specific port in Google Compute Engine or check the official Google Documentation for Firewall Rules