【问题标题】:Block http requests coming to Spring boot restful service running behind a Amazon ELB阻止 http 请求进入在 Amazon ELB 后面运行的 Spring Boot RESTful 服务
【发布时间】:2015-09-21 22:57:40
【问题描述】:

我有一个在 Amazon ELB 后面运行的 Rest 服务。 ELB 已启用 SSL,它会卸载 SSL,然后使用 http 调用后端服务。

有什么方法可以只允许对spring restful 服务的http 调用 来自负载均衡器的任何其他直接调用其余服务的调用都应该被阻止?

【问题讨论】:

    标签: spring rest ssl amazon-web-services amazon-elb


    【解决方案1】:

    在实例安全组中不允许来自 0.0.0.0/0 的请求。仅允许来自 ELB 的流量,在安全组规则中使用 ELB 的安全组 id (sg-xxxxxxxx) 而不是 IP 地址。

    【讨论】:

      猜你喜欢
      • 2014-03-05
      • 2021-02-15
      • 1970-01-01
      • 1970-01-01
      • 2022-07-17
      • 2018-10-25
      • 1970-01-01
      • 2017-08-02
      • 1970-01-01
      相关资源
      最近更新 更多