This document will serve as a basic how-to on using iptables.
Debian Sarge 3.1
Vanilla 2.4.30 kernel from mirrors.kernel.org
iptables administration utility version 1.2.11-10
This How-To is performed on a Debian Sarge 3.1 box, though the commands and syntax should work for any linux distro. Before you can configure iptables, you first must ensure that it has been compiled into the kernel, and that you have the proper userland utilities installed.
Full Article .