gunny_cu 发表于 2011-12-21 08:43

pf流量限制规则--范例

<DIV>VIP_GROUP = "{10.10.2.1,10.10.2.2}" <BR>STD_GROUP = "{10.10.2.4,10.10.3.1,10.10.3.2}" <BR>LMTGUY_GROUP = "{10.10.2.3,10.10.3.3,10.10.3.4}" </DIV>
<DIV><BR>altq on $INT_IF cbq bandwidth 10Mb queue {std,vip,lmtguy} <BR>queue std bandwidth 1.2Mb priority 2 cbq (default) <BR>queue vip bandwidth 2Mb priority 3 cbq (borrow) <BR>queue lmtguy bandwidth 500Kb priority 1 cbq <BR>...... <BR>#via internal port communication <BR>block all </DIV>
<DIV>pass out on $INT_IF from any to $VIP_GROUP flags S/SA keep state queue vip <BR>pass out on $INT_IF from any to $LMTGUY_GROUP flags S/SA keep state queue lmtguy <BR>pass out on $EXT_IF all keep state</DIV>
页: [1]
查看完整版本: pf流量限制规则--范例