[root@102 ~]# rpm -qa|grep kernel
kernel-devel-2.6.18-164.el5我们要用到这个文件
[root@102 ~]# tar jxvf /mnt/yuanwenjian/iptables-1.4.4.tar.bz2 -C /usr/src
[root@102 iptables-1.4.5]# cd /usr/src/iptables-1.4.4
[root@102 iptables-1.4.4]# ./configure
[root@102 iptables-1.4.4]# ls Makefile
Makefile
[root@102 iptables-1.4.4]# tar jxvf /mnt/yuanwenjian/iptables/patch-o-matic-ng-20091123.tar.bz2 -C /usr/src
[root@102 iptables-1.4.4]# cd /usr/src/patch-o-matic-ng-20091123/
[root@102 patch-o-matic-ng-20091123]# ./runme --download
Successfully downloaded external patch geoip
Successfully downloaded external patch condition
Successfully downloaded external patch IPMARK
Successfully downloaded external patch ROUTE
Successfully downloaded external patch connlimit
Successfully downloaded external patch ipp2p
Successfully downloaded external patch time
Successfully downloaded external patch ipv4options
Successfully downloaded external patch TARPIT
Successfully downloaded external patch ACCOUNT
Successfully downloaded external patch pknock
Hey! KERNEL_DIR is not set.
Where is your kernel source directory? [/usr/src/linux] /usr/src/kernels/2.6.18-164.el5-i686/
Hey! IPTABLES_DIR is not set.
Where is your iptables source code directory? [/usr/src/iptables] /usr/src/iptables-1.4.4/
Loading patchlet definitions........... done
Excellent! Source trees are ready for compilation.
[root@102 patch-o-matic-ng-20091123]# ./runme connlimit
Hey! KERNEL_DIR is not set.
Where is your kernel source directory? [/usr/src/linux] /usr/src/kernels/2.6.18-164.el5-i686/
Hey! IPTABLES_DIR is not set.
Where is your iptables source code directory? [/usr/src/iptables] /usr/src/iptables-1.4.4
Loading patchlet definitions........... done
Welcome to Patch-o-matic ($Revision$)!