I did this for a few years in a genero small router passively cooled form factor PC from China. Celeron with discrete Intel NICs. Ran PfSense.
Worked great until it died a few months back. Now it’s less expensive to just buy the equivalent Netgate appliance. It’s been great.