如何将我的 public IP 地址添加为入站规则?

How to add my public IP address as an inbound rule?

我已经设置了一个具有 Cassandra DB 节点的 VPC,我正在尝试将我的 IP 地址添加到一些测试中,但我无法添加我的 IP 地址:

将来源编辑为:

10.0.0.0/16, xx.xxx.xx.xx/0

其中 xx.xxx.xx.xx 是我的 public IP 地址,但出现错误:

The source must be a valid CIDR (e.g. 0.0.0.0/0) or the ID of another security group.

那么,如何将我的 IP 地址添加到入站规则中?

问题出在您的 xx.xxx.xx.xx/0 /0 不是有效的 CIDR 如果您只想使用您的 IO 地址,请像这样使用它 xx.xxx.xx.xx/32 它会起作用。

供参考http://doc.m0n0.ch/quickstartpc/intro-CIDR.html