Apart from open WRT, there's also opensense or opn Sense which let's you turn any old computer into a router as long as it has 2 network cards.
You may also need a switch and a WiFi AP tho, so at that point you better get an openWRT router. Just leaving this info here in case it's useful.