My server is :
Code:
uname -r
2.6.18-128.el5
I followed steps:
- yum install kernel-devel
- yum install iptables-devel
- download iptables-1.4.0.tar.bz2 and extract this file to /root/iptables-1.4.0
- download patch-o-matic-ng to /root/patch-o-matic-ng
- cd /root/patch-o-matic-ng
- ./runme --download
Code:
...
Successfully downloaded external patch rpc
Hey! KERNEL_DIR is not set.
Where is your kernel source directory? [/usr/src/linux] /usr/src/kernels/2.6.18-194.11.3.el5-i686
Hey! IPTABLES_DIR is not set.
Where is your iptables source code directory? [/usr/src/iptables] /root/iptables-1.4.0
- ./runme route
Code:
...
Excellent! Source trees are ready for compilation.
- cd /usr/src/kernels/2.6.18-194.11.3.el5-i686
- make oldconfig
- make prepare
- make modules_prepare
- cd /usr/src/kernels/2.6.18-194.11.3.el5-i686/net/ipv4/netfilter
Code:
ip_conntrack_mms.c ip_conntrack_rsh.c ip_nat_quake3.c ip_set_iphash.c ip_set_iptreemap.c ipt_connlimit.c ipt_IPV4OPTSSTRIP.c ipt_set.c Kconfig
ip_conntrack_quake3.c ip_conntrack_rtsp.c ip_nat_rtsp.c ip_set_ipmap.c ip_set_macipmap.c ipt_IPMARK.c ipt_pknock.c ipt_SET.c Makefile
ip_conntrack_rpc_tcp.c ip_conntrack_talk.c ip_nat_talk.c ip_set_ipporthash.c ip_set_nethash.c ipt_ipp2p.c ipt_ROUTE.c ipt_TARPIT.c
ip_conntrack_rpc_udp.c ip_nat_mms.c ip_set.c ip_set_iptree.c ip_set_portmap.c ipt_ipv4options.c ipt_rpc.c ipt_time.c
- make -C /usr/src/kernels/2.6.18-194.11.3.el5-i686 M=$PWD modules
Code:
make: Entering directory `/usr/src/kernels/2.6.18-194.11.3.el5-i686'
make[1]: *** No rule to make target `/usr/src/kernels/2.6.18-194.11.3.el5-i686/net/ipv4/netfilter/ip_conntrack_standalone.o', needed by `/usr/src/kernels/2.6.18-194.11.3.el5-i686/net/ipv4/netfilter/ip_conntrack.o'. Stop.
make: *** [_module_/usr/src/kernels/2.6.18-194.11.3.el5-i686/net/ipv4/netfilter] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-194.11.3.el5-i686'
I don't know how to fix this? There is not ip_conntrack.o in /usr/src/kernels/2.6.18-194.11.3.el5-i686/net/ipv4/netfilter...
(