Re: patching kernel and iptables for IMQ

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  IMQ.pom-ng.patch is for patching iptables 1.2.9 sourcew code ..

  wget http://netfilter.org/files/iptables-1.2.9.tar.bz2
  tar xjvf iptables-1.2.9.tar.bz2

  Now look in extensions folder ... there you have already the supported
options.

  wget http://www.linuximq.net/patchs/IMQ.pom-ng.patch
  cd iptables-1.2.9
  patch -p1 < ../IMQ.pom-ng.patch
  patching file extensions/.IMQ-test6
  patching file extensions/libip6t_IMQ.c
  patching file extensions/.IMQ-test
  patching file extensions/libipt_IMQ.c

  Now, the following must to be done so that iptables will support imq :
  chmod +x extensions/.IMQ-test*

  You will see when compiling that a lib will be created :

ld -shared -o extensions/libipt_IMQ.so extensions/libipt_IMQ_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux/include -Iinclude/
-DIPTABLES_VERSION=\"1.2.9\"  -fPIC -o extensions/libipt_recent_sh.o -c
extensions/libipt_recent.c

  My question is ... how do I patch the kernel so that I will have suport
for IMQ support as iptables option ?




> I have a linux box with kernel 2.4.22 and iptables 1.2.9
>
> First, i patch linux kernel with Norbet Buckmuller's .diff
>    #cd \usr\src\linux
>    #patch -p1 < imq-combo-debian-2.4.22.diff
> All correct
>
> Second, i -try to- patch iptables (following www.linuximq.net/faq.html)
>    #cd /usr/src/linux/net/ipv4/netfilter
> I edit IMQ.pom-ng.patch and replace $KERNEL_DIR with /usr/src/linux
>    #patch -p1 < IMQ.pom-ng.patch
>    #cd /usr/src/linux/net/ipv4/netfilter/extensions
>    #chmod +x .IMQ-test*.
>    #cd /usr/src/linux
>    #make dep & make modules
>    ...
>    plonk! :-(
>
> any idea?
>
> _______________________________________________
> LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>


_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux