[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2 ADSL / load balancing problem(?)



On Tue, Oct 22, 2002 at 12:54:39PM -0700, Scott Francis wrote:
> On Tue, Oct 22, 2002 at 09:08:26PM +0200, ziga_(_dot_)_huskic_(_at_)_zejn_(_dot_)_si said:
> > Hi,
> >
> > I have 2 ADSL lines as uplink for small office, how can I set OpenBSD
> > to use both of those for outgoing/incomming traffic?
> >
> > links etc would be great if not default soultion
> 
> Suggest you search the archives; this question (load balancing traffic) comes
> up periodically. You may also want to check out altq(9), and keep in mind
> that balancing ingress traffic is not possible with the setup you have.
> Balancing egress traffic may be possible, in a way, through use of
> altq/pf/nat and a pair of gateways.
> 

First normaly you should not have excessive ingress traffic on ADSL
because this will also reduce the egress traffic.

A simple way to load balance ingress traffic would be bgpdns
(http://www.bgpdns.org). Have a look at the RIPE 41 Presentation for more
info.
For egress traffic a bgpnat is in development but bgpnat uses FreeBSD and
their userland natd because complex loadbalancing does not belong into the
kernel. The upcomming natd form FreeBSD has already simple round robin
based egress load balancing. See http://diehard.n-r-g.com/stuff/freebsd/

It should be no big problem to add a similar balancing extension to pf but
I did not have time to dig through the pf code.

-- 
:wq Claudio



Visit your host, monkey.org