DMZ(非军事化区域)
内核编译:
配置: .config (/proc/cpuinfo,lspci,lsusb,hal-device)
make menuconfig
编译:
make
只编译部分源码:
make SUBDIR=arch/
make drivers/net/pcnet32.ko
转存编译结果
make O=/path/to/somewhere
安装内核模块
make modules_install
安装内核
make install
layer7–l7
应用:xunlei,qq,netfilter<–patch
-m layer7 –l7proto xunlei -j DROP
1、给内核打补丁,并重新编译内核
2、给iptables源码打补丁,并重新编译iptables
3、安装l7proto
Kernel Patch
1 | #tar xf linux-version.tar.gz -C /usr/src |
Networking support->Networking Options->Network packet filtering framework->Core Netfilter Configuration
Networking support -> Networking Options ->Network packet filtering framework ->IP:Netfilter Configuration
#make
#make modules_install
#make install
Complies iptables:
1 | #cp /etc/init.d/iptables ~/iptables |