如何使用 AWS VPN 从 EC2 实例 ping 本地 Windows 服务器?

How to ping from EC2 instance to on-premises Windows Server using AWS VPN?

按照下面的 link,我已成功将 Windows Server 2012 R2 设置为客户网关。

https://docs.aws.amazon.com/vpc/latest/adminguide/customer-gateway-windows-2012.html

我能够从我的本地 Windows 服务器 ping EC2 实例。但是,我想反之亦然,即从 EC2 inside instance (RDP) ping 本地 Windows 服务器 IP。我可以知道怎么做吗?

我通过 RDP 登录到 EC2 实例。从那里 ping 我的本地 Windows 服务器 (192.168.X.X) 但它返回 'Request timed out'.

为什么我需要这个?

我正在做所有这些,因为我想将数据从我的本地 SQL 服务器自动迁移和复制到云中的数据库。我决定使用 AWS Database Migration Service (DMS)。为了设置源端点(本地 SQL 服务器),我需要让 AWS 通过私有 IP 与我的本地网络通信。 DMS 应该识别 192.168.X.X\MSSQLServer.

  • 检查安全组的出站过滤器(但默认情况下应允许所有内容)。
  • 检查您的 NACL 以确保它允许适当的 inbound/outbound 流量,因为它是无状态的。
  • 检查 Windows 服务器中的 Windows 防火墙,确保它允许入站 ICMP。