I want to avoid adding individual 33 rules for each subnet mask.
It is very unlikely that you would ever need to that. And I think you don't quite understand what a subnet mask means or effects.
A very long Q&A is this one: How does IPv4 Subnetting Work?
But very simplified:
When you add an IPv4 IP-address without any subnet subnet mask or with an /32 subnet mask that means "this particular IP-address".
When you use an IPv4 IP-address with any other subnet mask than /32
that means: "the CIDR subnet range that includes this IP-address".
In other words 10.10.10.1/24
means: "the /24 subnet range that includes 10.10.10.1
"
i.e. the subnet ranging from 10.10.10.0
to 10.10.10.255
which is more commonly specified as 10.10.10.0/24
Subsequently 10.10.10.1/8
means: "the /8 range that includes 10.10.10.1
"
i.e. the subnet ranging from 10.0.0.0
to 10.255.255.255
; which is normally specified as 10.0.0.0/8
but 10.10.10.1/8
is equivalent.
Note that such a range includes 10.10.10.1/9
, 10.10.10.1/10
, 10.10.10.1/11
.... and all subnets until 10.10.10.1/32
And 10.10.10.1/0
means: "the /0 range that includes 10.10.10.1
" - that is the range from 0.0.0.0
to 255.255.255.255
or in other words any IPv4 address.