I’m setting up a new firewall, hopefully Mikrotik’s but to do so I need to be able to filter traffic by DNS but not in DNS itself (filter layer 3 without being the resolver) as well as by whole ASNs, similar to pfBlockerNG on pfSense or IP sets on OpenWRT, but I’ve been just staring at winbox for a while not really knowing what to do.
Basically DNS addresses would need to resolved preemptively — full recursion so it has all possible matches. I have recursive resolvers already on the network, so that part’s done, at least — and so ASN ranges would need to be resolved without BGP (I don’t know how to set it up, let alone am peering with anybody!). It’d also be great if it takes DNSBL and RBL data too, but not as necessary as basic DNS-, and ASN-sourced filtering.
Is this possible in RouterOS/CHR?