Chinaunix首页 | 论坛 | 博客
  • 博客访问: 447587
  • 博文数量: 173
  • 博客积分: 2970
  • 博客等级: 少校
  • 技术积分: 1490
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-11 14:35
文章存档

2011年(9)

2010年(17)

2009年(62)

2008年(85)

我的朋友

分类: 网络与安全

2011-05-23 21:36:51

VIP_GROUP = "{10.10.2.1,10.10.2.2}"
STD_GROUP = "{10.10.2.4,10.10.3.1,10.10.3.2}"
LMTGUY_GROUP = "{10.10.2.3,10.10.3.3,10.10.3.4}"

altq on $INT_IF cbq bandwidth 10Mb queue {std,vip,lmtguy}
queue std bandwidth 1.2Mb priority 2 cbq (default)
queue vip bandwidth 2Mb priority 3 cbq (borrow)
queue lmtguy bandwidth 500Kb priority 1 cbq
......
#via internal port communication
block all
pass out on $INT_IF from any to $VIP_GROUP flags S/SA keep state queue vip
pass out on $INT_IF from any to $LMTGUY_GROUP flags S/SA keep state queue lmtguy
pass out on $EXT_IF all keep state
阅读(652) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~