简体   繁体   English

通过VPN连接到VNET的Azure Web App(网站)-VPN连接断开

[英]Azure Web App (web site) connected via VPN to VNET - VPN connection goes down

I have an Azure Web App (formerly web site) connected via VPN to an Azure VNet. 我有一个通过VPN连接到Azure VNet的Azure Web应用程序(以前的网站)。 It then connects over port 8080 to an Azure VM (running a RavenDB server) using the Azure VM's private IP (10.0.0.X). 然后,它使用Azure VM的专用IP(10.0.0.X)通过端口8080连接到Azure VM(运行RavenDB服务器)。 This has worked extremely well for me over the last 5 months. 在过去的5个月中,这对我来说非常有效。

This is the general method I'm using for connecting the Web App to the VNet: http://azure.microsoft.com/en-us/documentation/articles/web-sites-integrate-with-vnet/ 这是我用于将Web应用程序连接到VNet的常规方法: http : //azure.microsoft.com/zh-cn/documentation/articles/web-sites-integrate-with-vnet/

This morning, my web app could not connect to the VM, throwing this error: 今天早上,我的Web应用无法连接到VM,并抛出以下错误:

Unable to connect to the remote server 
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
An attempt was made to access a socket in a way forbidden by its access permissions 10.0.0.10:8080 
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) 
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

Simply restarting the Web App fixed the problem. 只需重新启动Web App即可解决此问题。 Is there some potential instability in the VPN connection? VPN连接是否存在潜在的不稳定? The problem seems isolated to the Web App infrastructure since a simple restart of the Web App solved the problem. 由于Web App的简单重启解决了该问题,因此该问题似乎对Web App基础结构而言是孤立的。

The potential problem here is that the VPN connection could go down or otherwise be impaired without any action being taken to repair the connection. 这里的潜在问题是,如果不采取任何措施来修复连接,VPN连接可能会断开或受到损害。

The workaround is to setup some kind of monitoring and reset the web app if this condition occurs, but it would be nice to hear the Azure team weigh in. 解决方法是设置某种监视,并在出现这种情况时重置Web应用程序,但是很高兴听到Azure团队的参与。

David 大卫

At this time, May 2015, there are still a few rare bumps that can happen with the feature. 目前,2015年5月,此功能可能会遇到一些罕见的问题。 They are primarily caused when the VNET gateways are cycled which then may cause a problem with our client side of the VPN connection. 它们主要是在VNET网关循环时引起的,然后可能会导致VPN连接的客户端出现问题。 We are working to provide a fix for this. 我们正在为此提供修复程序。

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

相关问题 可以在VNET中的Web应用程序+ Azure VM与本地VLAN之间进行站点到站点VPN吗? - Site-to-Site VPN between Web App + Azure VM within VNET & on-prem VLAN possible? Azure Web App 未使用连接字符串通过 VPN 连接到现场 SQL Server - Azure Web App is not connecting to On-Site SQL Server via VPN using connection string Azure VNET 到 VNET 到站点到站点 VPN 连接 - Azure VNET to VNET to site to site VPN connectivity 专用 VPN 中的 Azure Web 应用程序? - Azure Web App in a Private VPN? Azure VpN 站点到站点 - 多个 Vnet - Azure VpN Site to Site - mutiple Vnet Azure 应用服务集成到只能通过 vnet 网关 VPN 访问 - Azure App Service integrate to accessible only via vnet gateway VPN 我是否需要使用Azure Wave和Web应用程序指向站点VPN - Do i need point to site vpn with azure waf and web app 有没有一种方法可以仅从特定的公共 IP 地址集允许点到站点 VPN 连接到 Azure VNet? - Is there a method to allow Point-to-Site VPN connection to a Azure VNet only from specific set of public IP addresses? 站点到站点VPN的Azure应用服务环境连接 - Azure App Service Environment Connection to Site to Site VPN Azure VNet 点到站点 VPN 和 OpenVPN 与 MAC 上的 Azure AD - Azure VNet Point to Site VPN and OpenVPN with Azure AD on MAC
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM