The
iptables packages with Fedora 7 doesn't provide you will all the
goodies the kernel has to offer, 'statistic' match support being one
of them. Here's how you can get them
Download the kernel and
iptables source rpms
from
http://download.fedora.redhat.com/p...194.fc7.src.rpm
http://download.fedora.redhat.com/p...1.3.7-2.src.rpm
Install
them
rpm -ivh
kernel-2.6.21-1.3194.fc7.src.rpm
Use rpmbuild to get
the kernel source tree under /usr/src/redhat/BUILD
rpmbuild
-bp /usr/src/redhat/SPECS/kernel-2.6.spec
Install the
iptables source rpm
rpm -ivh
iptables-1.3.7-2.src.rpm
Modify
/usr/src/redhat/SPECS/iptables.spec. We have to modify all
instances (5 of them) of KERNEL_DIR=/usr to point to the
correct kernel source tree. In my case its
/usr/src/redhat/BUILD/kernel-2.6.21/linux-2.6.21.x86_64 . So I change
it to
KERNEL_DIR=/usr/src/redhat/BUILD/kernel-2.6.21/linux-2.6.21.x86_64
. Depending on your architecture, this will be different for you but
always under /usr/src/redhat/BUILD/
Use rpmbuild to
build to rpms
rpmbuild -ba
/usr/src/redhat/SPECS/iptables.spec
Install it
rpm
-Uvh --force
/usr/src/redhat/RPMS/x86_64/iptables-1.3.7-2.x86_64.rpm
To
confirm if you got the 'statistic' match extension, execute
iptables
-m statistic --help