Chinaunix首页 | 论坛 | 博客
  • 博客访问: 233087
  • 博文数量: 13
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 431
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-24 00:27
文章分类

全部博文(13)

文章存档

2010年(1)

2009年(9)

2008年(3)

我的朋友

分类: 系统运维

2009-02-10 10:47:20

h3c f100-s
禁止迅雷下载,大智慧
time-range off-work-time1 00:00 to 07:30 daily
time-range off-work-time2 17:01 to 24:00 daily
 
acl number 3002
description discarding unnecessary packets
rule 10 permit ip time-range off-work-time1
rule 11 permit ip time-range off-work-time2
rule 12 permit udp destination-port eq dns
rule 13 permit tcp destination-port eq www
rule 14 permit tcp destination-port eq 443
rule 15 permit tcp destination-port eq ftp
rule 16 permit tcp destination-port eq pop3
rule 17 permit tcp destination-port eq smtp
rule 18 permit udp destination-port eq 8000
rule 19 permit tcp destination-port eq 1863
rule 20 permit tcp destination-port eq domain
rule 21 permit tcp destination-port eq 5000
rule 22 deny tcp destination-port eq 5188
rule 23 deny tcp destination-port eq 22223
rule 30 permit icmp
rule 31 permit tcp destination-port eq telnet
rule 50 deny ip
 
interface ethernet 0/2
firewall packet-filter 3002 outbound
 

在这里我设了两个时间段,分别是00:00~07:30和17:01~24:00,在这段时间内不限制BT和迅雷。
 
实际效果非常好,迅雷、BT和eMule基本上连不上任何资源。缺点是如果有特殊软件如股票和网游等
 
需要使用,需要抓包找出目的端口,再随时向ACL 3002里面添加新规则
阅读(1649) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~