在保护蔚蓝一个网站和虚拟机之间的网络 [英] Securing a network between a website and VM in azure

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

问题描述

据我所知,在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.

什么是确保从蔚蓝的网站访问VM(的MongoDB)的推荐方式?

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

我更preFER背后有某种形式的防火墙,而不是通信通过公共互联网去的分贝。

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.

推荐答案

如果您正在寻找使用网络和虚拟机自己的数据库,它是最好的开始与保留网站。共享网站可能不是好主意,由于资源限制和其他限制。

IF you are looking to use networking and your own database in Virtual machine, it is best to start with reserved websites. Shared website may not be good idea due to resource limitation and other restrictions.

如果你的数据库是MongoDB的,那么你有两个选择:

If your DB is MongoDB, then you have two option:


  1. 在一个虚拟机(在Windows Server + IIS +您的应用程序 - 的IaaS)上运行您的ASP.NET MVC应用程序,并已MongoDB是在其他虚拟机上运行。如果两台机器都在同一个DC,你不需要带网络连接的摆弄。

  1. Have your ASP.NET MVC application running in a Virtual Machine (Windows Server + IIS + your app - IaaS) and have MongoDB is running on other Virtual Machine. If both machines are in same DC, you dont need to fiddle with networking.

有无Azure的ASP.NET MVC Web角色(PaaS的)和一个虚拟机具有的MongoDB正在运行(IaaS的)。

Have Azure ASP.NET MVC Web Role (PaaS) and a Virtual Machine have MongoDB is running (IaaS).

在这两种情况下,你只需要配置一个连接字符串连接的MongoDB并没有使其工作,因为所有的机器都在里面相同的DC不需要额外的网络改造。

In both cases you just need to configure a connection string to connect MongoDB and there is no extra network modification needed to make it work as all machines are inside same DC.

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

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