简体   繁体   English

在VPN P2S下连接到Azure资源

[英]Connect to Azure Resource under VPN P2S

I'm trying to setup a Point-to-Site (P2S) VPN from my Windows 10 machine to my Azure Server and, even successfull connect to the VPN, I cannot connect to the server. 我正在尝试从Windows 10计算机到Azure服务器设置点对点(P2S)VPN,即使成功连接到VPN,也无法连接到服务器。

My Azure server has 2 network interfaces: 1st has private IP 10.0.0.5/24 (and an associated Public IP, that allow me to connect with Remote Desktop normally, but off the VPN). 我的Azure服务器具有2个网络接口:第一个具有专用IP 10.0.0.5/24(以及一个关联的公共IP,该IP使我可以正常连接远程桌面,但不连接VPN)。 2nd has private IP 10.0.0.4/24, without Public IP. 2nd具有私有IP 10.0.0.4/24,没有Public IP。 (the other public IP is used with the virtual network gateway to use the VPN). (另一个公共IP与虚拟网络网关一起使用以使用VPN)。

I've added the net/subnet "172.16.10.0/24" as addresses pool in my virtual network gateway. 我在我的虚拟网络网关中添加了网络/子网“ 172.16.10.0/24”作为地址池。 * When I connect, an IP /32 address is assignet to my local machine, like 172.16.10.3 / 255.255.255.255, and I can ping 172.16.10.0 *连接时,会将IP / 32地址分配给我的本地计算机,例如172.16.10.3 / 255.255.255.255,并且我可以ping 172.16.10.0

(no code to be displayed) (无代码显示)

The certificate setting is ok, the connection to the VPN is OK. 证书设置正常,与VPN的连接正常。 I only cannot connect to my Azure Server on my second interface 10.0.0.4. 我只能在第二个界面10.0.0.4上连接到Azure服务器。

Any idea that I've forgot to do? 有我忘了做的主意吗?

Thank you. 谢谢。

The solution: My Private IP range on Azure local network Gateway has been wrong on setup. 解决方案:安装时我在Azure本地网络网关上的私有IP范围错误。 I've fixed specifying my correct local IP range, but, not only this, a new route table was created, associating this with the GatewaySubnet (in the Virtual Network). 我已经修复了指定正确的本地IP范围的问题,但不仅如此,还创建了一个新的路由表,并将其与GatewaySubnet(在虚拟网络中)相关联。

Thanks to Nancy Xiong and msrini-MSIT for help. 感谢Nancy Xiong和msrini-MSIT的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM