How to build a BSD firewall using ipfilter. Covers everything from kernel config to allowing traffic.