分类: LINUX
2008-05-02 20:39:31
# wget # wget # wget # wget # tar xvf iptables-1.3.5.tar.bz2 -C /usr/src/ # ln -s /usr/src/iptables-1.3.5 # tar xvf l7-protocols-2006-06-03.tar.gz -C /usr/src/ # tar xvf netfilter-layer7-v2.2.tar.gz -C /usr/src/ # tar xvf ipp2p-0.8.0.tar.gz -C /usr/src/
# cd /usr/src/linux # patch -p1 < ../netfilter-layer7-v2.2/kernel-2.6.13-2.6.16-layer7-2.2.patch # make menuconfig Networking ---> Networking options --->[*] Network packet filtering (replaces ipchains) ---> IP: Netfilter Configuration --->Layer 7 match support (EXPERIMENTAL) [*] Layer 7 debugging output # time make –j 2 # make modules_install # cp arch/i386/boot/bzImage /boot/vmlinuz-2614 # lilo # reboot
# cd /usr/src/iptables # patch -p1 < /usr/src/netfilter-layer7-v2.2/iptables-layer7-2.2.patch # chmod 755 extensions/.layer7-test # export KERNEL_DIR=/usr/src/linux # export IPTABLES_DIR=/usr/src/iptables-1.3.5/ # make PREFIX=/usr/local/iptables/ LIBDIR=/lib/iptables/ BINDIR=/sbin # make PREFIX=/usr/local/iptables/ LIBDIR=/lib/iptables/ BINDIR=/sbin install
cd /usr/src/l7-protocols-2006-06-03/ Make install
# cd /usr/src/ipp2p-0.8.0/ # vi Makefile :36 ifeq ($(IPTABLES_SRC),) IPTABLES_SRC = /usr/src/iptables-1.3.5 endif # make # # cp libipt_ipp2p.so /usr/local/lib/iptables/ # insmod ipt_ipp2p.o # depmod -a # cp libipt_ipp2p.so /lib/iptables/ # insmod ipt_ipp2p.ko # depmod -a