在 Azure 中保护网站和 VM 之间的网络 [英] Securing a network between a website and VM in azure

查看:16
本文介绍了在 Azure 中保护网站和 VM 之间的网络的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在 windows azure 中您可以将虚拟机添加到虚拟网络,但我没有看到将网站添加到网络的选项.

I understand that in windows azure you can add VMs to a virtual network, but I don't see the option to add a website to a network.

从 Azure 网站保护对 VM (MongoDb) 的访问的推荐方法是什么?

what is the recommended way of securing access to a VM (MongoDb) from an azure website?

我更希望将数据库置于某种防火墙之后,而不是让流量通过公共互联网.

I would much prefer have the db behind some sort of firewall rather than traffic going through the public internet.

虚拟机将托管 MongoDb,因此不能选择使用 Sql Azure 或其他 MSSql 解决方案.

the vm will be hosting MongoDb, so using Sql Azure or other MSSql solutions isn't an option.

推荐答案

老问题,现在微软 Azure 支持了:http://azure.microsoft.com/zh-cn/documentation/articles/web-sites-integrate-with-vnet/

Old question, but this is now supported by Microsoft Azure: http://azure.microsoft.com/en-us/documentation/articles/web-sites-integrate-with-vnet/

首先,确保您已设置 VNET 并添加了网关(出于某种原因,添加网关需要很长时间...确保在继续之前完成).

First, make sure you've setup your VNET and have added a gateway (for some reason, adding the gateway takes a very long time... make sure you let it finish before you proceed).

New-AzureVNetGateway -VNetName $vnetName -GatewayType DynamicRouting

网关也可以添加到门户中.

The gateway can be added in the portal as well.

然后,您必须为此使用新预览门户,浏览您的网络应用并滚动向下到网络部分,然后单击虚拟网络"按钮.然后,在现有连接列表下找到您的 vnet.如果您没有看到它,则说明您的网关设置不正确.

Then, and you have to use the new Preview Portal for this, browse for your web app and scroll down to the Networking section and click on the "Virtual network" button. Then, find your vnet under the list of existing connections. If you don't see it, then your gateway isn't setup correctly.

这篇关于在 Azure 中保护网站和 VM 之间的网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆