如何申请IP限制 - 在Azure的Linux虚拟机 [英] Linux Virtual Machine at Azure - how to apply IP restriction

查看:213
本文介绍了如何申请IP限制 - 在Azure的Linux虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Windows Azure的LINUX VM(Ubuntu的),我有一个Web应用程序中运行,并有客户端的Socket应用程序。我想限制访问有限的IP的谁可以通过HTTP和TCP通过访问应用程序。

I have LINUX VM on Windows Azure (Ubuntu), i have a web application running there and client Socket application. I want to restrict the ACCESS to limited IP's who can access the application via http and via TCP.

请指教什么是限制在Windows Azure中的IP访问Ubuntu Linux操作系统的虚拟机最简单,最可靠的方式。

Please advice what is easiest and reliable way to restrict the IP access to Ubuntu Linux VM at Windows Azure.

推荐答案

有两种方式:


  • 设置了iptables的或VM本身类似的东西

  • 圣起来端点接入控制您的输入端点列表(ACL的)。您可以通过PowerShell中或通过门户网站做到这一点。

使用ACL,你必须允许范围的有序列表和拒绝范围,CIDR格式指定。然后,您可以允许IP地址的/块范围,例如你自己的数据中心的IP甚至是另一个的Azure服务的IP地址。

With ACL, you'll have an ordered list of allow-range and deny-range, specified in CIDR format. You can then allow/block ranges of IP addresses, such as your own data center's IP or even another Azure service's IP address.

从门户网站,你会看到一个管理ACL在VM上的端点页面底部选项:

From the portal, you'll see a MANAGE ACL option on the bottom of the Endpoint page of your VM:

现在你可以输入IP范围,以允许和拒绝,你可以用右边的箭头重新排序。

Now you can enter IP ranges to allow and deny, and you can reorder them with the arrows on the right.

这篇关于如何申请IP限制 - 在Azure的Linux虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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