cisco路由器使用PDLM来限制BT下载的方法

要得到 PDLM ,要到 http://www.cisco.com/pcgi-bin/tablebuild.pl/pdlm 下载 bittorrent.pdlm 。您需要有 CCO 的帐号。

然后通过 TFTP 服务器将 bittorrent.pdlm 拷贝到路由中。

使用

ip nbar pdlm bittorrent.pdlm

命令将 NBAR 中的 BT 功能启动。

再创建一个 class-map 和 policy map 并且把它应用到相应的路由器 的接口上。一般是 连接 Internet (Chinanet ) 的接口是 FastEthernet 或 10M 的以太网接口。在路由器 上您可以看见如下的配置 :

class-map match-all bittorrent
match protocol bittorrent
!
!
policy-map bittorrent-policy
class bittorrent
drop
!
interface FastEthernet0/
description neibujiekou
ip address 192.168.0.1 255.255.255.0
ip nat inside
service-policy input bittorrent-policy
service-policy output bittorrent-policy

!

 

实例:

Cisco (config)#ip cef
Cisco(config)#ip nbar pdlm bittorrent.pdlm
Cisco(config)#class-map match-any DenyBT-class
Cisco(config-cmap)#description DenyBT
Cisco(config-cmap)#match protocol bittorrent
Cisco(config-cmap)end
Cisco(config)#policy-map DenyBT-policy
Cisco(config-pmap)#class DenyBT-class
Cisco(config-pmap-c)#drop
Cisco(config-pmap-c)#en
Cisco(config)#interface e 0/1
Cisco(config-if)#service-policy input DenyBT-policy

 

 

NBAR (Network-Based Application Recognition) 的意思是网络应用识别。 NBAR 是一种动态能在四到七层寻找协议的技术,它不但能做到普通 ACL 能做到那样控制静态的、简单的网络应用协议 TCP/UDP 的端口号。例如我们熟知的 WEB 应用使用的 TCP 80 ,也能做到控制一般 ACLs 不能做到动态的端口的那些协议,例如 VoIP 使用的 H.323, SIP 等。

 

文章转载至http://bbs.net527.cn   无忧网客联盟

无忧网客联盟主站

无忧linux时代

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值