What kinda router are you going with? Off the shelf or custom? I found this thing on eBay a while back for super cheap. I just run Void Linux and using dnsmasq and a bunch of iptbles rules and it’s been pretty solid. https://battlepenguin.com/tech/installing-void-linux-with-a-serial-terminal/