简体   繁体   English

设置 CIDR/IP 以便任何人都可以从任何 IP 访问它?

[英]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?您如何设置 CIDR/IP 以便任何人都可以从任何地方访问它? I'm trying to make my AWS RDS DB instance accessible from anywhere as my ISP doesn't give me a static IP.我试图让我的 AWS RDS 数据库实例可以从任何地方访问,因为我的 ISP 没有给我一个静态 IP。 Everytime my IP changes I have to go change the security record.每次我的 IP 更改时,我都必须更改安全记录。

0.0.0.0/0 does the trick on the EC2 firewall settings 0.0.0.0/0对 EC2 防火墙设置有用

A CIDR defines a range of IP addresses.CIDR定义了 IP 地址范围。 In the CIDR notation above, /0 is saying "every possible IP".在上面的 CIDR 表示法中, /0表示“每个可能的 IP”。

I like using http://cidr.xyz/ to visualize the range of addresses.我喜欢使用http://cidr.xyz/来可视化地址范围。

I'm not familiar with how one configures DB Security Groups, but if you allow access from IP's in this range, you'll allow access from any IP ( . . . ): 0.0.0.0/0 ...我不熟悉一个如何配置数据库安全组,但是如果你让在这个范围内,从IP的访问,你会允许任何IP访问(。): 0.0.0.0/0 ...

From a security perspective, you should not do this.从安全角度来看,您不应该这样做。 You should authorize the smallest possible group.您应该授权尽可能小的组。 For example, if only the last portion of your IP changes, eg your IP is always 1.2.3.*, then authorize 1.2.3.0/24 .例如,如果您的 IP 只有最后一部分更改,例如您的 IP 始终为 1.2.3.*,则授权1.2.3.0/24

For more information about CIDR notation, drop by Wikipedia: http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing有关 CIDR 表示法的更多信息,请访问 Wikipedia: http : //en.wikipedia.org/wiki/Classless_Inter-Domain_Routing

For All IP ADD CIDR for DB Security Group:对于数据库安全组的所有 IP 添加 CIDR:

If CIDR/IP :O.0.0.0/0 Not Working then Try如果CIDR/IP :O.0.0.0/0不工作然后尝试

CIDR/IP: 1.1.1.1/32

If 0.0.0.0/0 doesn't work you can try:如果0.0.0.0/0不起作用,您可以尝试:

0.0.0.0/1 
128.0.0.0/2
192.0.0.0/3
224.0.0.0/4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM