frank_wang
博客园
首页
新随笔
联系
订阅
管理
15 Posts :: 0 Stories :: 2 Comments :: 0 Trackbacks
公告
我的主页
个人资料
我的闪存
发短消息
搜索
常用链接
我的随笔
我的空间
我的短信
我的评论
更多链接
我的参与
我的新闻
最新评论
我的标签
随笔档案
2005年7月 (3)
2005年6月 (2)
2005年5月 (10)
最新评论
1. re: 男生看了可要警惕,女生看了不要偷学
哈哈,有点意思,这个文章不是网络上已经很多类似的东西了吧,诶,楼主真不幸。
--太阳神
2. re: JAVA的关于SIP的开源代码
你好,你是做JAVA关于SIP的吗?我们交流下,我的MSN:ada13311294023@hotmail.com
--ada
阅读排行榜
1. JAVA的关于SIP的开源代码(965)
2. SIP_RFC(916)
3. PSTN常用资料(663)
4. An Analysis of the Skype Peer-to-Peer Internet Telephony Protocol(638)
5. NAT的类型(631)
评论排行榜
1. JAVA的关于SIP的开源代码(1)
2. 男生看了可要警惕,女生看了不要偷学(1)
3. h.323<-->sip(0)
4. PSTN常用资料(0)
5. NAT的类型(0)
cisco3640路由器中封杀bt和edonkey
引用:
Enter the following commands while configuring a class-based QoS policy to create a class map that
identifies and classifies BitTorrent file transfer traffic:
class-map [match-any | match-all] class-map-name
match protocol bittorrent
配置:
本例在cisco3640路由器中封杀bt和edondey,其它路由器也一样。
IOS版本:c3640-io3-mz.123-14.T2.bin
1、把bittorrent.pdlm和eDonkey.pdlm文件传到路由器flash中(或slot或disk)。
2、在路由器中配置:
cisco3640#conf t
cisco3640(config)#ip nbar pdlm flash:bittorrent.pdlm ;加载flash中的bittorrent.pdlm到IOS软件中。
cisco3640(config)#ip nbar pdlm flash:eDonkey.pdlm ;加载flash中的eDonkey.pdlm到IOS软件中。
% NBAR ERROR : newer version of PDL module `edonkey' already loaded (2 >= 2) ;说明IOS软件已经带有eDonkey.pdlm模块了。
cisco3640(config)#class-map match-any bit-eDonkey ;定义class-map名。注意要用match-any,因为要封掉bittorrent或edonkey(or关系),match-all(and关系)
cisco3640(config-cmap)#match protocol bittorrent ;选择bittorrent协议
cisco3640(config-cmap)#match protocol edonkey ;选择edonkey协议
cisco3640(config)#policy-map drop-bit-edon ;定义policy-map名
cisco3640(config-pmap)#class bit-eDonkey ;class class-map
cisco3640(config-pmap-c)#drop ;丢弃BT和eDonkey数据
cisco3640(config)#int fastEthernet 3/1 ;选择配置端口,进入端口配置模式
cisco3640(config-if)#service-policy input drop-bit-edon ;应用policy-map为流入数据方式。
cisco3640(config-if)#service-policy output drop-bit-edon ;应用policy-map为流出数据方式。其实到上一条就可以了。
==========================
conf文件相关部分内容:
!
ip nbar pdlm flash:bittorrent.pdlm
!
!
!
class-map match-any bit-eDonkey
match protocol bittorrent
match protocol edonkey
!
!
policy-map drop-bit-edon
class bit-eDonkey
drop
!
!
!
interface FastEthernet3/1
ip address xxx.xxx.xxx.xxx 255.255.255.252
duplex auto
speed auto
service-policy input drop-bit-edon
service-policy output drop-bit-edon
!
0
0
0
(请您对文章做出评价)
«
上一篇:
some function about the GW ip address in the MS system
posted on 2005-07-10 01:40
frank_wang
阅读(377)
评论(0)
编辑
收藏
网摘
注册用户登录后才能发表评论,请
登录
或
注册
。
IT新闻
:
·
NDepend 3.0已与Visual Studio集成
·
Ruby in Steel 1.5发布,去除IronRuby支持
·
淘宝网通过索引模式涉足网络文学
·
苹果发布 iPhone/iPad SDK 3.2 beta2 开发包
·
“谷姐”:披着“谷歌”羊皮的悲哀?
每天10分钟,轻松学英语
专题:
iPad
jQuery
Windows 7
网站导航:
博客园首页
IT新闻
个人主页
闪存
程序员招聘
社区
博问
网摘
China-pub 计算机图书网上专卖店!6.5万品种2-8折!
China-Pub 计算机绝版图书按需印刷服务
在知识库中查看:
cisco3640路由器中封杀bt和edonkey
Powered by:
博客园
Copyright © frank_wang