Please help compile ipt_route with path-o-matic
Dear All,
I have to load ipt_route into my iptables on Centos 5.3 . I found a document about this Code:
http://www.netfilter.org/documentation/HOWTO//netfilter-extensions-HOWTO-2.html#ss2.2 Code:
# cvs -d :pserver:cvs@pserver.netfilter.org:/cvspublic login Thanks so much! |
'patch-o-matic-ng' : Patch-O-Matic New Generation.
Google .. Patch-O-Matic .. http://www.netfilter.org/projects/pa...-external.html http://www.intra2net.com/en/developer/ipt_ACCOUNT/ The files http://ftp.netfilter.org/pub/patch-o-matic-ng/ http://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/ patch-o-matic-ng-20100218.tar.bz2, 18-Feb-2010 23:55, 18K etc. etc. |
Thanks, knudfl!
I run ./runme successful. But I don't know how to recompile kernel and load ipt_route? :( Please help me... |
My server is :
Code:
- 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:
... Code:
... - 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 Code:
make: Entering directory `/usr/src/kernels/2.6.18-194.11.3.el5-i686' |
Well, 'kernel-devel' is a limited package, almost no files.
Is meant only for building drivers, that come with their own headers, etc. The kernel source is kernel-2.6.18-194.el5.src.rpm, 79M http://mirror.centos.org/centos/5.5/...94.el5.src.rpm You have tons of work ahead of you, before you can use it : Comes with at least 100 patches. But may be you in some way can edit the file kernel.spec and make things fit together ? .. |
Thank you so much for your reply!
I downloaded *.src.rpm and compiled again. But when I run make -C /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686 M=$PWD modules Code:
$ make -C /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686 M=$PWD modules |
I tried with another patch-o-matic, it's ok but have no ipt_route in that patch.
Seems ipt_route is disabled for latest patchs version? But when I use an old patch, it shows error like previous reply... How to I can add ipt_route into my iptables? >.< |
All times are GMT -5. The time now is 05:32 AM. |