Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting CIDR/IP so anyone can access it from any IP?

How do you set a CIDR/IP so anyone can access it from anywhere? I'm trying to make my AWS RDS DB instance accessible from anywhere as my ISP doesn't give me a static IP. Everytime my IP changes I have to go change the security record.

like image 400
Matt Avatar asked Jun 15 '11 23:06

Matt


People also ask

What is CIDR for all IP addresses?

CIDR is the short for Classless Inter-Domain Routing, an IP addressing scheme that replaces the older system based on classes A, B, and C. A single IP address can be used to designate many unique IP addresses with CIDR.

How do I get IP range from CIDR?

The formula to calculate the number of assignable IP address to CIDR networks is similar to classful networking. Subtract the number of network bits from 32. Raise 2 to that power and subtract 2 for the network and broadcast addresses. For example, a /24 network has 232-24 - 2 addresses available for host assignment.

What does the CIDR block 0.0 0.0 0 represent?

In IPv4-based routing, 0.0. 0.0 serves as a default route. This means no particular address has been designated in the routing table as the next hop in the packet's path to its final destination.


1 Answers

0.0.0.0/0 does the trick on the EC2 firewall settings

A CIDR defines a range of IP addresses. In the CIDR notation above, /0 is saying "every possible IP".

I like using http://cidr.xyz/ to visualize the range of addresses.

like image 72
russau Avatar answered Sep 22 '22 00:09

russau