In this article I explain how to configure a pfSense firewall version 1.2.3 when the default gateway is on a different subnet as the block of IP you get from your ISP or hosting provider. pfSense i s a free firewall solution.
Here is another solution for a pfSense 2.0.