Greetings all - I have a couple existing Docker containers that I want to migrate to RouterOS. I have a Pihole container that handles DNS for internal clients, and then an Alpine container I built that runs the NextDNS client (since unfortunately they don't support RouterOS natively) for DoH. The Pihole uses the NextDNS container as its upstream DNS. I only let the NextDNS container communicate outbound TCP 443 to the NextDNS servers, which is a handful of IP addresses. Since the Pihole isn't responsible for DoH, I currently have it use a Squid proxy to get its adlist updates and all other web destinations are denied. Since Pihole isn't proxy aware, I use Docker to transparently force proxy usage through its config.json file.
All of this I have running in a parallel environment on a RB3011, except for whitelisting the Pihole's web traffic to the adlist servers which I can't figure out how to do. I know I could simply NAT all traffic from the Pihole to the proxy, but since Pihole isn't proxy aware I'm not sure if that would help. Wondering if others have tackled web filtering for their containers. Maybe a third container that acts as a transparent proxy?