My understanding is that 10.0.2.1/32 means 10.0.2.1 vs 10.0.2.1/24 means 10.0.2.1 to 10.0.2.255.
For example in /etc/network/interfaces
, /24
is used when configuring static IPs.
But in /etc/iptables/rules.v4
, -d 10.0.2.0/24
means any IP in the 255.255.255.0
subnet... which equals 10.0.2.0 to 10.0.2.255 right?
Sorry for the newbie question... I am confused!