If you want to roll your own, there's a great OpenBSD router tutorial. If you're not comfortable with commandline configuration, pfSense is a really great option for old PCs with a few NICs.
Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it. -- Perlis's Programming Proverb #58, SIGPLAN Notices, Sept. 1982