Is there better way to block traffic between 20 subnets on CCR other then creating (20+19+18+..+1) firewall filter rules like this one:
add action=drop chain=forward dst-address=192.168.21.0/24 src-address=192.168.22.0/24
(subnets are not in sequence, but all listed in IP/Adressess )
Create a rule where you block traffic if dst-address is not sex-address. Then you only need 20 rules.
But I do not know your full config, so maybe I’m missing something.
First, make accept rules for each subnet (src to dst) like:
/ip firewall filter add chain=forward action=accept src-address=192.168.0.0/24 dst-addresss=192.168.0.0/24
Then, make one list of all subnets (ALL_subnets) and make rule:
/ip firewall filter add chain=forward action=drop src-address-list=ALL_subnets dst-address-list=All-subnets