Debian 6 X86 内核编译 + I7 Filter支持

1.apt-get source linux-2.6 (linux-2.6 2.6.32-48) 系统将下载文件,并解压,apply系统补丁 ln -s linux.2.XXX linux 2.下载I7-Filters文件,解压 3.cd linux; patch -p1 < ../netfilter-layer7-v2.21/kernel-2.6.25-2.6.28-layer7-2.21.patch 4.cp /boot/configXXX ./.config 5.make menuconfig,设置l7 netfilter 6.make-kpkg clean 7.fakeroot make-kpkg –initrd –append-to-version=-686-smp–rev=1.0 kernel_image modules_image 8.在/usr/src下生成1个deb文件 9.dpkg -i XXX.deb将会自动配置内核。重启(此时grub将会增加新内核选项,原先所有东西均会保留)

I7内核选项参考: http://www.linuxidc.com/Linux/2012-11/75105.htm http://blog.csdn.net/tg5156/article/details/18988529 http://l7-filter.clearfoundation.com/downloads/start

内核编译参考 http://blog.csdn.net/ctbinzi/article/details/6032987 http://blog.csdn.net/nemo2011/article/details/7528144