|
|
|
|
 用iptables封BT - NetSnake [ 2006-03-17 15:00 | 962 byte(s)]
 Re: 用iptables封BT - smarteeyang [ 2006-03-23 13:32 | 40 byte(s)]
 Re: 用iptables封BT - NetSnake [ 2006-03-23 14:40 | 512 byte(s)]
 Re: 用iptables封BT - smarteeyang [ 2006-03-23 18:23 | 76 byte(s)]
 Re: 用iptables封BT - wsgtrsys [ 2006-03-30 17:50 | 66 byte(s)]
 Re: 用iptables封BT - sheep [ 2006-03-20 16:00 | 413 byte(s)]
 Re: 用iptables封BT - NetSnake [ 2006-03-20 15:23 | 38 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
这是我最近作的一点工作,有什么问题欢迎大家讨论。
用ipp2p模块很容易封掉BT,当然不能说100%,但基本上大部分PP2P协议,像BitTorrent、EMule好像都差不多能关掉。
1、在www.ipp2p.org上下载最新的ipp2p模块。我开始用的是0.7.0,能封EMule,但有些BT不能封,现在用0.8.1,基本上看不到BT。
2、下载与系统使用iptables版本一致的iptables源码,解压比如到/usr/src/iptables-1.2.11,建个/usr/src/iptables的连接到那里。
ln -s /usr/src/iptables-1.2.11 /usr/src/iptables
3、进入ipp2p目录,执行make
4、如果没什么错误的话,应该生成了so和ko文件
5、把libipt_ipp2p.so拷贝到/lib/iptables/下,我的Debian iptables默认使用这个目录。
6、把ipt_ipp2p.ko拷贝到系统iptables模块目录下或其他目录。
7、执行insmod /Path/To/ipt_ipp2p.ko
8、添加规则,比如
iptables -I FORWARD -m ipp2p --bit -j DROP
9、不清楚的可以用 iptables -m ipp2p -help或去他们的网站获取帮助。
|
|
|
----
学习 ...
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
FATAL: Module ipt_ipp2p not found.
我的安装后出现如下问题,不知道是什么原因。
按照出错误的说法,似乎是没有安装好ipp2p这个模块。
/sbin/lsmod ,命令发现ipp2模块已经装好。
[root@sglab ipp2p-0.8.0]# /sbin/lsmod
Module Size Used by
ipt_ipp2p 6656 0
ipt_REDIRECT 1985 3
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
我没有测试到加密协议,不过ipp2p文档上有:
04.01.2006 New test version 0.8.1_rc1 released
New test version 0.8.1_rc1 is out
download the new version here
# changes are: new (experimental) protocols: mute, xdcc(block only) and waste (THX to joco)
# detects BitComet header encryption
# edonkey udp bug fixed
# some new rules for winmx
# more code cleanup (the code does not look very well)
|
|
|
----
学习 ...
|
|
[Original]
[Print]
[Top]
|
|
|