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!
/24is used when configuring a static IP in/etc/network/interfacesand/32when targeting a single IP in iptables. Both use cases seemingly are for single IPs... Perhaps thats the part I don’t understand as Krackout pointed out in his answer. – sunknudsen Aug 08 '20 at 10:00