Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would install l7-filter to block P2P torrent, First of all , I have a linux debian. I installed by the below command

apt-get install l7-filter-userspace

And then run command

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

but face with the error:

iptables v1.4.14: Couldn't load match `layer7':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

I really don't know what extra should I do ?

share|improve this question

To use L7, read the 2 links below:

Option 1 - you will still need to load some kernel modules

Option 2 - you will need to recompile the the kernel

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.