- 论坛徽章:
- 2
|
http://l7-filter.sourceforge.net/HOWTO-kernel.en.php
Iptables Setup
First read the README in the package "Layer 7 patches". Depending on your version of iptables, the instructions are different.
iptables 1.4.0 and older
Use the appropriate iptables patch to to patch[1] iptables. Compile iptables, pointing it at your patched kernel source:
* Run "chmod +x extensions/.layer7-test" (information about file permissions can't be contained in the patch)
* Then "make KERNEL_DIR=/path/to/patched/kernel_source" (you must have configured your kernel source before this step)
* And install (as root): "make install KERNEL_DIR=/path/to/patched/kernel_source"
iptables 1.4.1
Don't use this version. There's no reason to and it's difficult to compile.
iptables 1.4.1.1 and newer
Copy libxt_layer7.c and libxt_layer7.man (from the subdirectory of the "Layer 7 patches" package that the README points you to) to the extensions/ directory of your iptables source. Then:
* "./configure --with-ksource=/path/to/patched/kernel_source" (use the full path)
* "make"
* (as root) "make install"
[ 本帖最后由 donggua0713 于 2008-8-30 10:18 编辑 ] |
|