System environment: RHEL5 [2.6.18-8.el5xen]
Software Environment:
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.19.tar.bz2
http://www.netfilter.org/projects/iptables/files/iptables-1.4.2.tar.bz2
Http://ie.archive.ubuntu.com/sourceforge/l/l7/l7-filter/netfilter-layer7-v2.20.tar.gz
Http://ie.archive.ubuntu.com/sourceforge/l/l7/l7-filter/l7-protocols-2008-10-04.tar.gz
Target function:
Add Layer7 patches for iptables to implement application layer filtering.
################################################################
First, recompile the kernel
1, combined Kernel+layer7 patch
shell> TAR-JXVF linux-2.6.25.19.tar.bz2-c/usr/src/
shell> TAR-ZXVF netfilter-layer7-v2.20.tar.gz-c/usr/src/
Shell> cd/usr/src/linux-2.6.25.19/
Shell> Patch-p1 </usr/src/netfilter-layer7-v2.20/kernel-2.6.25-layer7-2.20.patch
View the current kernel
Download new kernels and patches to Linux
Unpacking cores and patches
[Root@localhost ~]# tar-jxvf linux-2.6.25.19.tar.bz2-c/usr/src/
[Root@localhost ~]# tar-jxvf netfilter-layer7-v2.20.tar.gz-c/usr/src/