Add Layer7 patch (Linux2.6.25 kernel) for iptables under Linux

Source: Internet
Author: User
Tags bz2 iptables linux

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.