RH9 UPDATE 2.6 KERNEL + IPTALBES

发表于:2007-07-04来源:作者:点击数: 标签:
继上次把升级RH9 kernel到2.6.10之后,再次升级kernel和Iptablesiptables extension. RH9 UPDATE 2.6 KERNEL + IPTALBES 1.Preparation Download the newest kernel, iptables, patch-o-matic-ng from the offical website, and put them on /opt/soft direct
继上次把升级RH9 kernel到2.6.10之后,再次升级kernel和Iptables&iptables extension.

RH9 UPDATE 2.6 KERNEL + IPTALBES

1.Preparation
Download the newest kernel, iptables, patch-o-matic-ng from the offical website, and put them on /opt/soft directory.

2.Let's begin

1)first need to remove RPM iptables ackage
rpm -qa |grep iptables
rpm -e --nodeps iptables-devel
rpm -e --nodeps iptables

2)Decompression kernel, iptables, patch-o-magic-ng software packages.
#tar -xjvf kernel-2.6.11.6.tar.gz2
#mv linux-2.6.11.6 linux
#tar -xjvf iptables-1.3.1.tar.bz2
#tar -xjvf patch-o-matic-ng-20050401.tar.bz2
#mv patch-o-matic-ng-20050401 patch-o-matic-ng

3) Patch kernel & iptables & patch-o-matic-ng
#cd /usr/src/linux
#make mrproper
#make menuconfig,nothing need to do,just saved and exit,for building .config file.
#cd /usr/src/patch-o-matic-ng
#KERNEL_DIR=/usr/src/linux IPTABLES_DIR=/usr/src/iptables-1.3.1 ./runme extra

4) Complie/install kernel
#cd /usr/src/linux
make menuconfig, make sure that "[*]Prompt for development and/or incomplete code/drivers" must be selected.
#make
#make modules
#make modules_install
#make install

5)Complie/install iptables
#cd /usr/src/iptables-1.3.1
#export KERNEL_DIR=/usr/src/linux
#export IPTABLES_DIR=/usr/src/iptables-1.3.1
#make BINDIR=/sbin LIBDIR=/lib MANDIR=/usr/share/man install

3.Write iptables scripts to test

原文转自:http://www.ltesting.net