简体   繁体   English

通过Azure上的点对点和站点到站点路由WebApi

[英]Routing WebApi through Point-to-Site and Site-to-site on Azure

i have a webAPI hosted on azure. 我在azure上托管了一个webAPI。 It connects to 3rd party site using their dev env IPAddress and Port. 它使用其开发环境IP地址和端口连接到第三方站点。 This works fine. 这很好。 The requirement was to then create site-to-site VPN connection to connect to their live env. 要求是然后创建站点到站点VPN连接以连接到其实时环境。

I created a VNet,vNetGateway and localGateway. 我创建了一个VNet,vNetGateway和localGateway。 the VnetGateway using a new public IP that connects successfully to their localGateway. VnetGateway使用新的公共IP成功连接到其localGateway。

Then i want to route my webAPI through the vNetGateway so i setup the point-to-site configuration. 然后,我想通过vNetGateway路由我的webAPI,以便设置点对点配置。

My webAPI is making a socket connection internally pointed at their subnet address and port they specified but all i can see is conn errors. 我的webAPI在内部建立套接字连接,指向它们指定的子网地址和端口,但我只能看到conn错误。

What is the web address and port the webApi should be connecting to? webApi应该连接到的网址和端口是什么?

Please enable BGP on the site-to-site connection. 请在站点到站点连接上启用BGP。 Without BGP, the P2S client (webapp) will not get the routes to remote site. 没有BGP,P2S客户端(webapp)将不会获得到远程站点的路由。 You will have to create the P2S configuration again after you enable BGP on the S2S connection for it to work. 在S2S连接上启用BGP后,您将不得不再次创建P2S配置。

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

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