Load balancing with ratio

Rajkumar S rajkumars at gmail.com
Fri May 11 10:39:39 UTC 2007


Hi,

pf can do outbound load balancing using route-to and provide  the ext
interface and gateway ip like { ($ext_if1 $ext_gw1), ($ext_if2
$ext_gw2) } round-robin. But the algorithm is only round-robin which
may not be appropriate if the two links are asymmetric, say an  1MB
line and 256kbps line.

Is there any way to provide some ratio like 1:4 where out of 5
packets/bytes 4 will be via one link and one via other link?

I have gone through the docs and this feature does not seem to exist
any where, so if some one can give a starting place to look, where I
can do some hacking, that would also be fine.

raj


More information about the freebsd-pf mailing list