Giancarlo Razzolini wrote:
...
> my problem. My 2 ADSL had different downstream bandwidth. And, as i'm
> using round-robin, i don't know where the connection is going. I don't
> kndow how to implement altq in this especific situation. I
> was thinking
> in something like: one queue for "normal" traffic to the firewall
> itself, with 99.2Mb. And two other queues with 0.5Mb and 0.3Mb
> respectively. But i don't know if this work, because i can
> assign only 1
> queue per rule. And, with round-robin, i don't know where the
> packet is
> going.
I do this...
altq on $ext_if1 hfsc bandwidth 1.5Mb queue{mgmt, other}
altq on $ext_if2 hfsc bandwidth 0.768Mb queue{mgmt, other}
queue other bandwidth 95% {usert, mail}
queue usert bandwidth 75% priority 6 hfsc(default realtime 40%)
queue mail bandwidth 25% priority 4 hfsc(realtime 20% upperlimit
85%)
queue mgmt bandwidth 3% priority 7 hfsc(realtime 3% upperlimit 10%)
pass in on $int_if route-to {($ext_if1 $ext_gw1),($ext_if2 $ext_gw2)}
round-robin from $lan_net to any keep state
pass out on $ext_if1 queue usert keep state
pass out on $ext_if2 queue usert keep state
pass out on $ext_if1 proto tcp from any to any port 25 queue mail keep
state
pass out on $ext_if2 proto tcp from any to any port 25 queue mail keep
state
pass out on $ext_if1 proto icmp from ($ext_if1) queue mgmt keep state
pass out on $ext_if2 proto icmp from ($ext_vif2) to any queue mgmt keep
state
-Steve S.