NOTE: This is only needed for 2.0.x kernels. 2.2.x kernel users will need to use IPCHAINS which usually is already installed in modern distribution. It can also be found at a URL in Section 5
- FTP the ipfwadm source code tgz or RPM file to "/usr/src/"
- Un-compress the IPFWADM tgz file ("tar -xzvf ipfwadm-2.3.0.tgz") or install the RPM file ("rpm -i ipfwadm-2.3.0-1.i386.rpm")
Note: If you already installed IPFWADM and the above RPM installation didn't work, don't worry, the stock IPFWADM that comes with Redhat will work ok.
- FTP the IPFWADM timeout patch to /usr/src/ipfwadm-2.3.0
- Un-compress the IPFWADM patch ("gunzip ipfwadm-2.3.0-generic-timeout.patch.gz")
- Apply the timeout patch "patch -p0 < ipfwadm-2.3.0-generic-timeout.patch"
- Make sure that all "Hunks Succeed"
- Edit the "ipfwadm.c" file
- At line 107, insert this line:
#include <linux/timer.h>
- Compile IPFWADM by doing:
"make" "make install"