Introduction - If you have any usage issues, please Google them yourself
This code implements a simple kernel level firewall based on netfilter, which can control IP routing, and is a good material for getting an introduction to netfilter. It is the source implementation of a kernel firwall