Though I rely on my own firewall script for the gateway and I haven't checked this one.
There are other firewall distros like clones smoothwall-ipcop , monowall etc.
But i find this one more feature rich compared to the one's above:
http://www.redwall-firewall.com/
Regards.