windows - Azure 云服务 阻止所有公共(public)访问(有异常(exception))

标签 windows azure

在 Azure 云服务中,如何通过异常(exception)列表阻止所有公共(public)访问?

我正在使用 Windows 2008 R2 实例运行 Azure 云服务。

最佳答案

您可以在端点上设置访问控制列表,指定允许或阻止的 IP 地址范围。目前这仅通过 PowerShell 公开。你会做这样的事情:

$acl = New-AzureAclConfig

Set-AzureAclConfig -AddRule Permit -RemoteSubnet "1.2.3.0/24" -Order 1 
                        -ACL $acl -Description "my company IP range"

Set-AzureAclConfig -AddRule Deny -RemoteSubnet "5.6.7.0/24" -Order 2 
                        -ACL $acl -Description "that evil hacker"

Get-AzureVM -ServiceName myservice -Name myvm | 
Set-AzureEndpoint -Name http -Protocol tcp -PublicPort 80 -LocalPort 80 -ACL $acl | 
Update-AzureVM

关于windows - Azure 云服务 阻止所有公共(public)访问(有异常(exception)),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18620794/

相关文章:

c++ - 如何为 Code Blocks 13.12 编译 boost 1.55.0 至 win7(32 位)?

node.js - 如何从 Windows 中完全删除 node.js

c# - 如何从 hWnd 获取 "Application Name"for Windows 10 Store Apps (e.g. Edge)

azure - 在第一个管道上成功运行后触发第二个 Azure 管道

authentication - 使用从另一个 IdP 返回的 SAML 2.0 工件在 MS Azure AD 中进行身份验证

javascript - 如何正确附加azure blob存储?

c# - 如何生成与JWT.IO网站相同的签名?

Python、pinax、django、windows AttributeError : 'module' object has no attribute 'call_subprocess'

c# - 多页 WPF 应用程序

azure - 如何防止在azure devops yaml中创建新分支的构建