Is there a way to block all connections except for those that match a domain-based whitelist? This isn't just for HTTP traffic, but all connections.
In pfSense I can create an "invert match" firewall rule to achieve this with a list of domains, but I'm hoping to switch to OpenWrt for ARM support. I'm not sure the exact process pfSense uses to map domains to IPs, but it seems to work pretty well.
I use this for a VM running software I don't fully trust, and I only let it connect to a few specific destinations.