The Raspberry Pi (or any capable SBC for that matter) can be a full-on replacement for many things in your networking ...
If you want to take network protection a step further, you can pair your custom router with a DNS-based blocking tool like Pi ...