You don't need to spend that much on obtaining a firewall product that offers you granular control over NAT/masquerading.
Some standalone firewall/gateway products that will install on minimal hardware:
- Sophos UTM (free for home use)
- Smoothwall (open source firewall)
You're at most looking for a bare-bones, low-end computer with dual network adapters.