If you want something simple like ublock, the direct replacement is pihole, it runs on a raspberry pi or other minimal hardware, you setup your dhcp server to point at it for DNS.
Otherwise you can flash pfsense or opnsense on to compatible hardware which can also be configured with pfBlockerNG or similar to provide the same blocking functionality plus firewall functionality but it's probably a bit harder to set up.
Otherwise you can flash pfsense or opnsense on to compatible hardware which can also be configured with pfBlockerNG or similar to provide the same blocking functionality plus firewall functionality but it's probably a bit harder to set up.