【发布时间】:2021-07-08 03:19:07
【问题描述】:
早安,
如果要配置一个 EC2 实例 (serverA),该实例在端口 8000 上从少数尚未配置的 EC2 实例(serverB、serverC 等)接收 TCP 流量,那么在 serverA 上配置安全组的最佳做法是什么?
Security group: serverA_sg
Source: CIDR block that encompass serverB/C and any future instances of the same type
Port range: 8000
CIDR block would have to be at least /24 due to the fluidity of the environment.
或
Security group: serverA_sg
Source: serverA_sg
Port range: 8000
Then assign "serverA_sg" to serverB/C when they are provisioned? I assume the negative here is that the "client" instances will also then be available on 8000.
还是完全不同的东西?
谢谢!
【问题讨论】:
-
服务器 B/C 是否与服务器 A 位于同一 VPC 中?
-
实例将在同一个 VPC 中。
-
在服务器 A 的端口 8000 上创建一个表示入站客户端的空安全组。当您启动服务器 B 和 C 时,将它们添加到该安全组。
标签: amazon-web-services aws-security-group