Azure API Management Restrict multiple caller IP Address

被刻印的时光 ゝ 提交于 2019-12-11 17:00:01

问题


If I look at the below URl for restricting IP Address in API Management with its policy "IP-Filter", we can either limit single IP Address or a range. Is there a way I can filter different IP Address like 172.2.2.2, 122.2.2.4, 134.2.2.3?

https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies#RestrictCallerIPs

Thanks and Regards, Manu


回答1:


Graphical interface allows you to add many IP addresses in "Filter IP addresses" policy.

It's changed to the following xml expression

    <ip-filter action="allow">
        <address>10.10.1.1</address>
        <address>10.10.1.200</address>
    </ip-filter>


来源:https://stackoverflow.com/questions/53480617/azure-api-management-restrict-multiple-caller-ip-address

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