[英]What is `10.0.0.1/32` in networking?
What is the difference between 10.0.0.1/32
and 0.0.0.0/0
in.networking? 10.0.0.1/32
和0.0.0.0/0
in.networking 之间有什么区别?
I am trying to fix this security issue by allowing all traffic through port 22 with cidr_block set to ( 0.0.0.0/0)
.我试图通过允许所有流量通过端口 22 并将 cidr_block 设置为 (
0.0.0.0/0)
来解决此安全问题。 After research, 10.0.0.1/32
appears to fix this.经过研究,
10.0.0.1/32
/32 似乎可以解决此问题。 However, what is the difference in this context?但是,在这种情况下有什么区别?
Here is the issue https://docs.bridgecrew.io/docs.networking_1-port-security .这是问题https://docs.bridgecrew.io/docs.networking_1-port-security 。
That is a CIDR block , which denotes a range of IP addresses.那是一个CIDR 块,表示 IP 地址的范围。 The CIDR block
0.0.0.0/0
denotes every IP address that exists, while the CIDR block 10.0.0.1/32
denotes the range 10.0.0.1
to 10.0.0.1
(in other words, the single IP address 10.0.0.1
). CIDR 块
0.0.0.0/0
表示存在的每个 IP 地址,而 CIDR 块10.0.0.1/32
表示范围10.0.0.1
到10.0.0.1
(换句话说,单个 IP 地址10.0.0.1
)。
You can calculate the CIDR range using a utility like this one .您可以使用像这样的实用程序来计算 CIDR 范围。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.