Ipchains has been obsolete since the release of Linux kernel 2.4 in 2001. Have you really installed a 10-year old Linux distro with kernel 2.2? The current firewall infrastructure in Linux is
netfilter/iptables[
^]. By "coding my firewall" do you mean coding a front-end for configuring and monitoring the firewall built in the Linux kernel?