How to add range of ip's in outbound rules->Security Group

0

I want to add range of IPs in outbound rules in security group. How can I do that ?

已提問 1 年前檢視次數 345 次
2 個答案
1

I'm not 100% sure what is meant by "range of IPs".

You can use subnet masks to specify a network range. For example, you could specify 172.16.0.0 with a mask of 255.255.240.0 which covers 172.16.0.0 - 172.16.15.255`.

You can also create prefix lists which are groups of IP addresses that you can then assign to security groups.

profile pictureAWS
專家
已回答 1 年前
profile pictureAWS
專家
kentrad
已審閱 1 年前
0

To add to what my colleague said, here is some more info how Subnet CIDR blocks work

The CIDR block of a subnet can be the same as the CIDR block for the VPC (for a single subnet in the VPC), or a subset of the CIDR block for the VPC (to create multiple subnets in the VPC). The allowed block size is between a /28 netmask and /16 netmask. If you create more than one subnet in a VPC, the CIDR blocks of the subnets cannot overlap.

For example, if you create a VPC with CIDR block 10.0.0.0/24, it supports 256 IP addresses. You can break this CIDR block into two subnets, each supporting 128 IP addresses. One subnet uses CIDR block 10.0.0.0/25 (for addresses 10.0.0.0 - 10.0.0.127) and the other uses CIDR block 10.0.0.128/25 (for addresses 10.0.0.128 - 10.0.0.255).

profile pictureAWS
Niko
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南