On 2011-04-09, Paul Suh <paul....@ps-enable.com> wrote: > Folks, > > I've been looking at the pf FAQ and there are instructions for symmetric load > balancing for outgoing traffic. Is there a way to do *asymmetric* load > balancing? E.g., I have a 20 Mbps FIOS line and a 6 Mbps ADSL line. I'd like > to either (A) send all outgoing traffic up to 20 Mbps through the FIOS link, > then send any overflow to the ADSL line, or (B) set the pf load balancing so > that it favors the FIOS link over the ADSL link by a 10:3 ratio. > > Is there a pf config that does this, or do I need to get hacking?
It's not perfect but you can list entries in route-to multiple times: route-to {(em0 1.1.1.1), (em0 1.1.1.1), (em0 1.1.1.1), (em1 1.1.2.1)} Note that it's per-session not per-packet so you will end up with things like some downloads being restricted to 6Mb/s. Alternatively you could split things up by protocol and e.g. use the high-capacity line for http/ftp and the lower-capacity one for ssh/smtp/voip.