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
|
|
Networking support->Networking Options->Network packet filtering framework->Core Netfilter Configuration
Netfilter connection tracking support
“Layer7” match support
“string” match support
“time” match support
“iprange” match support
“connlimit” match support
“state” match support
“conntrack” connection match support
“mac” address match support
“multiport” Multiple port match support
Networking support -> Networking Options ->Network packet filtering framework ->IP:Netfilter Configuration
IPv4 connection tracking support (required for NAT)
Full NAT MASQUERADE target support NETMAP target support REDIRECT target support
#make
#make modules_install
#make install
Complies iptables:
|
|