iptables has more features then ipchains or ipfwadm. If your using a 2.4.x kerenel (or better) us iptables.
On debian install the package: iptables and check the documentation in: /usr/share/doc/iptables
On debian stable (as of 2003-08-01) you will need to upgrade to a 2.4 kernel to use iptables