ccie不是我的终点,只是我奋斗的方向!

cisco路由上封BT方法比较及分析

上一篇 / 下一篇  2005-10-07 21:50:00 / 个人分类:cisco Fan

QQ:7581276 MAIL:lh@hutc.zj.cn [请转贴时保留我的EMAIL]

最近为了封BT,几乎把NBO的网络论坛找遍了,用NBAR (Network-Based Application Recognition)网络应用识别
NBAR是一种动态能在四到七层寻找协议的技术,它不但能做到普通ACL能做到那样控制静态的TCP UDP的报,也能做到控制一般ACLs不能做到动态的端口的那些协议(如BT)之类.

我就说说过程:
1到http://www.cisco.com/pcgi-bin/tablebuild.pl/pdlm 下载bittorrent.pdlm,(要CCO的)
2放到TFTP,然后用copy tftp disk2(大多数应该是flash)
拷到路由器中,
route7206#conf t
Enter configuration commands, one per line. End with CNTL/Z.
route7206(config)#ip nbar pdlm bittorrent.pdlm 
route7206(config)#

!
ip nbar pdlm bittorrent.pdlm
!

1.) 创建一个 a class-map and policy map 并且把它应用到相应的端口:
得到关于BT的部分是
class-map match-all bittorrent
match protocol bittorrent
!
!
policy-map bittorrent-policy
class bittorrent
drop

interface GigabitEthernet0/2
description CONNECT INSIDE
ip address 192.168.168.1 255.255.255.252 secondary
ip address 192.168.21.1 255.255.255.0
ip nat inside
service-policy input bittorrent-policy
service-policy output bittorrent-policy
duplex full
speed 1000
media-type rj45
no negotiation auto

我实验了一下,这样的话,BT就不能下载,呵呵
感觉目前这样的技术比较好,我正在实验去掉EMULE的方法.


TAG:

TTT 引用 删除 ttt   /   2006-06-14 14:51:00

test 11 你好
fr 引用 删除 fr   /   2006-06-14 14:50:00

路由器封端口和设置ACL或采用专门的模块来封BT太烦了,而且容易出,我用过楼上的朋友介绍的百络网警,可以很方便的控制BT,电驴,电骡的下载,各位可以到www.netbai.com去下载一个面络网警试用一下.fficeffice" />

fy 引用 删除 fy   /   2006-06-14 14:44:00

内容:inpost


test 11 你好

whitecat_fah77 引用 删除 whitecat_fah77   /   2005-11-11 08:22:00
这个需要用户名的吖
lileiloveyou 引用 删除 lileiloveyou   /   2005-11-01 20:26:00
电驴也跟你说的这方法一样,下载电驴的pdlm文件灌到flash来封
dsh_leage 引用 删除 dsh_leage   /   2005-10-09 12:52:00
厉害!!!!!!!!!
 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar