Limit the access to one application in Azure Service Fabric

北慕城南 提交于 2020-01-06 15:25:09

问题


I have one Service Fabric application deployed in one Azure Service Fabric cluster, which provide some REST API, and also a web app in Azure, acting as the consumer of the REST API. What I want to do is to deny any access to my SF application from anywhere except from my web app.

I tried NSG to add the deny rule for source with the tag of Internet but failed. Seems the existence of the load balancer of SF cluster make the deny rule not working. Any suggestion? Thanks!


回答1:


This works for me:

  1. Add an inbound NSG rule, priority lower than the default rules (say 100)
  2. Name: Give it a name
  3. Source: Any
  4. Protocol: TCP Source
  5. port range: (web app addresses)
  6. Destination: Any
  7. Destination port range: *
  8. Action: Deny (was incorrectly set to Allow before)

I suspect either the INTERNET tag's range is too broad to block anything, or your rule priority # is too high.

Check here to find out Azure DC port ranges.



来源:https://stackoverflow.com/questions/37648337/limit-the-access-to-one-application-in-azure-service-fabric

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!