【问题标题】:How to block the traffic served from WSO2 API gateway and allow only from on-premises gateway? [closed]如何阻止来自 WSO2 API 网关的流量并只允许来自本地网关的流量? [关闭]
【发布时间】:2018-03-07 17:56:45
【问题描述】:

World Bank API 是在 API Cloud 中创建的,可以从 API 控制台调用,也可以通过本地网关从 curl 命令调用。

curl -X GET --header 'Accept: text/xml' --header 'Authorization: Bearer 942967aa-9e7f-3c4b-823e-87da7cf6e6ee' 'https://localhost:8243/t/devmr/wb/1.0.0/countries/usa' -k

确保消费者应用程序只能通过本地网关调用的推荐做法是什么?

【问题讨论】:

  • API Cloud 是否提供任何基于 IP 的限制?

标签: wso2 wso2-am api-gateway api-management


【解决方案1】:

您可以根据 IP 地址限制对 API 的访问。您可以将本地网关的 IP 地址标记为白标签,并仅允许从该 IP 地址进行访问,如 article 中所述。本文讲的是 WSO2 API Manager,您也可以在 API Cloud 中进行。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-06-28
    • 2015-06-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多