#!/bin/sh set -x KERNEL=2.4.26 KERNELPATCH=2.4.27-rc2 IMQ=linux-2.4.26-imq.diff IPTABLES=1.2.11 POMNG=20040621 IPTABLESIMQ=iptables-1.2.9-imq1.diff cd /usr/src wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-${KERNEL}.tar.bz2 bzip2 -dc linux-${KERNEL}.tar.bz2| tar xf - ln -s linux-${KERNEL} linux cd /usr/src/linux wget http://www.kernel.org/pub/linux/kernel/v2.4/testing/patch-${KERNELPATCH}.bz2 bzip2 -dc patch-${KERNELPATCH}.bz2 | patch -p1 wget http://www.linuximq.net/patchs/${IMQ} patch -p1 <${IMQ} cd /usr/src wget http://www.iptables.org/files/iptables-${IPTABLES}.tar.bz2 bzip2 -dc iptables-${IPTABLES}.tar.bz2| tar xf - mv iptables-${IPTABLES} iptables wget http://www.iptables.org/files/patch-o-matic-ng-${POMNG}.tar.bz2 bzip2 -dc patch-o-matic-ng-${POMNG}.tar.bz2| tar xf - cd /usr/src/patch-o-matic-ng-${POMNG} IPTABLES_DIR=/usr/src/iptables KERNEL_DIR=/usr/src/linux ./runme string CONNMARK TTL connlimit iprange mport cd /usr/src/iptables wget http://www.linuximq.net/patchs/${IPTABLESIMQ} patch -p1 <${IPTABLESIMQ} chmod +x extensions/.IMQ-test* make make install cd /usr/src/linux/drivers/net wget http://www.linuximq.net/patchs/imq-nat.diff patch Makefile.tmp mv Makefile.tmp Makefile make mv libipt_ipp2p.so /usr/local/lib/iptables mv ipt_ipp2p.o /lib/modules/2.4.27-rc2/kernel/net/ipv4/netfilter cd /usr/src/linux echo Teraz uruchom make menuconfig i ustaw te opcje: echo Code maturity level options --->Prompt for development and/or incomplete code/drivers echo Networking options ---> Network packet filtering (replaces ipchains) echo Networking options ---> IP: Netfilter Configuration ---> IP tables support (required for filtering/masq/NAT) echo Networking options ---> IP: Netfilter Configuration ---> Packet mangling echo Networking options ---> IP: Netfilter Configuration ---> IMQ target support echo Network device support ---> IMQ (intermediate queueing device) support