All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] patching kernel and iptables for IMQ
@ 2004-04-26  9:03 Brian Nox
  2004-04-26 11:56 ` Adrian Saileanu
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Nox @ 2004-04-26  9:03 UTC (permalink / raw)
  To: lartc

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@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] patching kernel and iptables for IMQ
  2004-04-26  9:03 [LARTC] patching kernel and iptables for IMQ Brian Nox
@ 2004-04-26 11:56 ` Adrian Saileanu
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Saileanu @ 2004-04-26 11:56 UTC (permalink / raw)
  To: lartc


  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@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-26 11:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-26  9:03 [LARTC] patching kernel and iptables for IMQ Brian Nox
2004-04-26 11:56 ` Adrian Saileanu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.