Iptable l7-filter安装指南和块p2p

我会安装l7-filter来阻止P2P洪stream,首先,我有一个linux debian。 我通过下面的命令安装

apt-get install l7-filter-userspace 

然后运行命令

 iptables -I FORWARD -m layer7 --l7proto bittorrent -j DROP 

但面对的错误:

iptables v1.4.14:无法加载匹配`layer7':没有这样的文件或目录

试试`iptables -h'或'iptables –help'以获取更多信息。

我真的不知道我该怎么办?

要使用L7,请阅读以下2个链接:

选项1 – 你仍然需要加载一些内核模块http://kuscsik.blogspot.com/2008/02/how-to-userspace-l7-filter-on-ubuntu.html

选项2 – 您将需要重新编译内核http://www.ph-lwug.org/index.php?option=com_content&view=article&id=71:turn-your-linux-into-layer-7-filtering-appliance -L7filter