Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2003-04-02 10:11:15
Size: 1251
Editor: palcsn01
Comment:
Revision 5 as of 2003-04-02 10:29:52
Size: 2579
Editor: palcsn01
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
[get | view] (23.3 KB) attachment:config-2.4.20-imq
[get | view] (10.8 KB) attachment:nocat.conf
[get | view] (7.6 KB) attachment:initialize.fw
[get | view] (6.1 KB) attachment:throttle.fw
[get | view] (10 KB) attachment:libipt_IMQ-1.2.6a.tar.gz
[get | view] (21.5 KB) attachment:imq-2.4.18-combo-patch.txt
Line 5: Line 11:
First, get the 2.4.20 linux kernel (assuming Debian here folks! May need the unstable apt-site in your /etc/apt/sources.list)
# apt-get update [[BR]]
# apt-get install gcc libcurses5 libcurses5-dev kernel-package kernel-headers-2.4.20 kernel-source-2.4.20 [[BR]]
# cd /usr/src [[BR]]
# bunzip2 kernel-source-2.4.20.tar.bz2 [[BR]]
# tar xvvf kernel-source-2.4.20.tar [[BR]]
Line 7: Line 20:
you don't want to compile iptables: (no, you don't)
Get the combo patch and the precompiled shared libs matching your iptables version (iptables -V).
Get the combo patch attachment:imq-2.4.18-combo-patch.txt and the precompiled shared libs attachment:libipt_IMQ-1.2.6a.tar.gz matching your iptables version (iptables -V - was 1.2.6a for me).
Line 10: Line 22:
# cd /usr/src/linux
# patch -p1 <../imq-2.4.18.diff-combo-6
-- find where iptables keeps its shared libraries (/lib/iptables and /usr/lib/iptables is common) --
# tar xvzf libipt_IMQ-1.2.6a.tar.gz -C /lib/iptables
Put the patch file in /usr/src
Line 15: Line 24:
# cd /usr/src/linux [[BR]]
# patch -p1 <../imq-2.4.18.diff-combo-6 (make sure it's the right name you saved from above) [[BR]]
-- find where iptables keeps its shared libraries (/lib/iptables and /usr/lib/iptables is common) [[BR]]
# tar xvzf libipt_IMQ-1.2.6a.tar.gz -C /lib/iptables [[BR]]
Line 16: Line 29:
this is common for both methods:
# cd /usr/src/linux
# make menuconfig
Then you need to make and install your kernel. Here's my .config attachment:config-2.4.20-imq file that I used to compile my kernel. It's a pretty stock 2.4.20 kernel, patched with the IMQ patch.

# cd /usr/src/linux [[BR]]
# make menuconfig [[BR]]
Line 30: Line 44:
or, for debian, I use Thing's Kernel Recompile Page:
http://www.thing.dyndns.org/debian/kerneldeb.htm
# make dep
# make-kpkg clean
# make-kpkg --revision=thing.2.0 kernel_image
# type dpkg -i name_of_the_kernel.deb
-- May give you a warning to move your libraries if you're on the same kernel level.
Line 31: Line 52:
Here's my .config file that I used to compile my kernel. It's a pretty stock 2.4.20 kernel, patched with the IMQ patch, as noted here:
http://attachment:config-2
.4.20-imq
Here's my .config attachment:config-2.4.20-imq
file that I used to compile my kernel. It's a pretty stock 2.4.20 kernel, patched with the IMQ patch.

Here we go loop de loo here we go loop de lai... [get | view] (23.3 KB) attachment:config-2.4.20-imq [get | view] (10.8 KB) attachment:nocat.conf [get | view] (7.6 KB) attachment:initialize.fw [get | view] (6.1 KB) attachment:throttle.fw [get | view] (10 KB) attachment:libipt_IMQ-1.2.6a.tar.gz [get | view] (21.5 KB) attachment:imq-2.4.18-combo-patch.txt

IMQ was the solution: http://luxik.cdi.cz/~patrick/imq/index.html

First, get the 2.4.20 linux kernel (assuming Debian here folks! May need the unstable apt-site in your /etc/apt/sources.list) # apt-get update BR # apt-get install gcc libcurses5 libcurses5-dev kernel-package kernel-headers-2.4.20 kernel-source-2.4.20 BR # cd /usr/src BR # bunzip2 kernel-source-2.4.20.tar.bz2 BR # tar xvvf kernel-source-2.4.20.tar BR

To install the IMQ Patch (from the FAQ):

Get the combo patch attachment:imq-2.4.18-combo-patch.txt and the precompiled shared libs attachment:libipt_IMQ-1.2.6a.tar.gz matching your iptables version (iptables -V - was 1.2.6a for me).

Put the patch file in /usr/src

# cd /usr/src/linux BR # patch -p1 <../imq-2.4.18.diff-combo-6 (make sure it's the right name you saved from above) BR -- find where iptables keeps its shared libraries (/lib/iptables and /usr/lib/iptables is common) BR # tar xvzf libipt_IMQ-1.2.6a.tar.gz -C /lib/iptables BR

Then you need to make and install your kernel. Here's my .config attachment:config-2.4.20-imq file that I used to compile my kernel. It's a pretty stock 2.4.20 kernel, patched with the IMQ patch.

# cd /usr/src/linux BR # make menuconfig BR

You will have three new options: Networking options ---> IP: Netfilter Configuration --->IMQ target support Networking options ---> IPv6: Netfilter Configuration --->IMQ target support Network device support --->IMQ (intermediate queueing device) support

Choose at least one of the targets and the device itself. Netfilter debugging should be turned off, otherwise cou get lots of annoying messages.

# make dep modules bzImage modules_install

or, for debian, I use Thing's Kernel Recompile Page: http://www.thing.dyndns.org/debian/kerneldeb.htm # make dep # make-kpkg clean # make-kpkg --revision=thing.2.0 kernel_image # type dpkg -i name_of_the_kernel.deb -- May give you a warning to move your libraries if you're on the same kernel level.

Here's my .config attachment:config-2.4.20-imq

  • file that I used to compile my kernel. It's a pretty stock 2.4.20 kernel, patched with the IMQ patch.

BandwidthShaping (last edited 2007-11-23 18:02:45 by localhost)