I have an AWS EC2 instance that I'm running in the US-EAST OHIO region. But, I don't want to set 0.0.0.0/0
IP address in my inbound rules for the security group. So, I select: SSH
-> MyIP
to get the ip address every time I run the instance.
I want to understand how I can add a range of IP addresses instead?
For example, when I select SSH
-> Custom
instead of MyIP
, and if I want to include all IP addresses that include the ranges 54.95.21.(any number here)
, how do I do that? i.e., the last number could be any number, it should allow that, first 3 should be fixed. Also, what should be the subnet
for the range?