小型ISP网络配置与防火墙搭建详解
1. QoS基本设置
在网络环境中,QoS(Quality of Service,服务质量)的设置至关重要。以下是为远程数据库应用开发者等不同类型流量分配带宽的基本设置:
#Remote DB application developers
#we allow a minimum of 1/8 of total bandwidth for remote developers
let RBW=$BW/8
$AC 1:1 classid 1:30 htb rate ${RBW}kbit ceil ${RBW}kbit prio 2
$AQ 1:30 handle 300: pfifo limit 5
$AF handle 3 fw classid 1:30
#traffic between HQ and this location
#we allow a minimum of 1/4 of total bandwidth for traffic with HQ
let I=$BW/4
$AC 1:1 classid 1:40 htb rate ${I}kbit ceil ${BW}kbit prio 3
$AQ 1:40 handle 400: pfifo limit 5
$AF handle 4 fw classid 1:40
#Internet Traffic for users
#we allow a minimum of 1/4 of total bandwidth for internet traffic
$AC 1:1 classid 1:50 htb rate ${I}kbit ceil ${B
超级会员免费看
订阅专栏 解锁全文
986

被折叠的 条评论
为什么被折叠?



