proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« 关掉 BBSD - 郁闷的一天 | Main | 减少IO吃内存打造无盘squid »

April 2, 2005

BT 杀手 - ipp2p

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2005/04/02/000617.html http://windtear.net/archives/2005/04/02/000617.html

BT 为资源共享带来了便捷
同时也带来了巨大的问题

去年曾用了一下
惊呆于其资源占用 然后就立即不用了

如今不少地方从多方面考虑 都不允许用BT下载
那么如何封禁 BT 呢

ipp2p 是一个选择

IPP2P is a netfilter extension to identify P2P filesharing traffic. The main goal for developing IPP2P was giving the adminstrator a dynamic tool to filter the traffic in an intelligent way. So it doesn't aim at prohibiting all P2P traffic but make it possible to shape this traffic to a given rate. For this purpose IPP2P searchs the payload of TCP packets for signaling patterns of P2P networks. As these patterns are not beeing present in all P2P packets we had to use some other netfilter extensions in order to get the whole IPP2P package working as already described. IPP2P works togeter with connection tracking and connection marking - in that way you can catch the bigger part of all P2P packets and limit the bandwidth rate.
The name IPP2P comes on the one side from IP (internet protocol) and on the other from P2P (short for peer-to-peer). Writing both shortcuts in big letter in german I entitled IPP2P also in big letters. As new matches for netfilter are labeled in small letters the IPP2P-files and netfilter options are in small letters too. I know this is a little bit confusing :-)

-m ipp2p --ipp2p

-m ipp2p --edk --kazaa --gnu --dc
Thus a complete and simple filterrule using IPP2P would look like this:
iptables -A FORWARD -m ipp2p --ipp2p -j DROP

iptables -A PREROUTING -p tcp -m ipp2p --ipp2p -j MARK --set-mark 1

iptables -A FORWARD -p udp -m ipp2p --kazaa -j DROP

iptables -A FORWARD -m ipp2p --kazaa -j DROP

http://rnvs.informatik.uni-leipzig.de/ipp2p/docu_en.html
http://rnvs.informatik.uni-leipzig.de/ipp2p/links_en.html
本blog WWW

Posted by windtear at April 2, 2005 11:53 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.