即使将防火墙规则定义为允许

时间:2019-09-19 07:19:17

标签: windows google-cloud-platform google-compute-engine gcloud smb

我正在创建一个Google Windows实例,我需要为其启用SMB [文件和打印机共享] 445和139端口。 我已经在“ VPC网络” =>防火墙规则下创建了防火墙规则

但是仍然创建的Windows实例没有启用445或139端口。

防火墙规则如下:

“ default-allow-smb 入口 应用于全部
IP范围:0.0.0.0/0 每秒:445,139 允许 65534 默认”

当我通过RDP登录Windows实例并在“控制面板” =>系统和安全性=> Windows防火墙=>高级设置=>入站规则下检查时:“文件和打印机共享”(SMB输入)仅显示为已禁用

在Google云控制台上创建的Google Windows实例在网络详细信息下显示“ default-allow-smb”防火墙规则。 Firewall Rule is as below

Firewall Rule details

1 个答案:

答案 0 :(得分:0)

Google Compute Engine VM实例中的Windows环境

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

  

我使用了 Microsoft documentation ,并按照以下步骤打开了防火墙端口以启用文件和打印机共享。目前,对我来说,文件和打印机共享(SMB输入)已被禁用。但是,右侧有一个“启用规则” 按钮,您可以单击该按钮以启用该规则。

enter image description here

  

然后,它应该启用该规则,就像它在此处显示的那样:

enter image description here

  

您会看到已启用字段设置为

enter image description here

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

  

如果您要仔细检查是否正确设置了防火墙规则,则可以选中 How to open a specific port in Google Compute Engine 或选中 official Google Documentation for Firewall Rules < / p>