Lama Madan
Lama Madan

Reputation: 737

DestinationCidrBlock property of AWS::EC2::Route

I went through a tutorial and it has "DestinationCidrBlock" : "0.0.0.0/0", What exactly this mean. Does it always have this ip address. If not how should I decide the value of this properties. Any information would be appreciated

Upvotes: 0

Views: 919

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269550

A CIDR range of 0.0.0.0/0 refers to the entire Internet.

This is typically used for an Inbound rule, effectively saying that anybody (the entire Internet) is permitted inbound access on a particular port.

It is also possible to used a more restrictive address, such as a /32 range which refers to one IP address only (eg 54.11.22.33/32), or anything between /0 and /32. Calculating ranges can be difficult, so an online CIDR calculator can be used.

See: Classless Inter-Domain Routing - Wikipedia

Upvotes: 2

Related Questions