You  sort of can on the outbond side by using the route-to option and using
multiple matching interface/gateways.

....Route-to { if1 gw1, if1 gw1, if2 gw2 } round-robin...

This would prefer if1 over if2 for 2/3 the traffic.

Sorry if the syntax isn't quite right as I sent this from my phone.  Also be
aware that this can break some web-sites, like YouTube.  You can try the
sticky option, but last I tried (4.1 days) it didn't quite work.

-Steve S.

-----Original Message-----
From: Fernando Alvarez <[email protected]>
Sent: Thursday, April 02, 2009 9:42 AM
To: Stefan Sperling <[email protected]>
Cc: LeiV <[email protected]>; [email protected] <[email protected]>
Subject: Re: Using 2 internet connections on OpenBSD Gateway

And... What if both connections doesn't have the same upstream
bandwidth? Would it be possible to load-balance both Internet
connections considering the upload/donwload capacity of each one, and
not using a round-robin load balancing, which assigns a nearly to 50/50
load?

Fernando

El jue, 02-04-2009 a las 13:08 +0100, Stefan Sperling escribiC3:
> On Thu, Apr 02, 2009 at 01:05:53PM +0100, Stefan Sperling wrote:
> > On Thu, Apr 02, 2009 at 01:52:20AM -0700, LeiV wrote:
> > > Hi,
> > > I have a openbsd firewall/gateway and behind a webserver, users arrive
to my webserver via 1 domain name, I have a cable connection 12Mbps
down/500Kbps up....the down speed is OK I dont have so many incoming requests
...but the up speed is saturated easily with those requests as my pages have
images, etc...
> > > I would like to add another internet connection to my openbsd box so I
can increase my upstream bandwitch...it is possible? all my incoming requests
will come with the same internet connection as I only have 1 domain
name....can I send back the requested pages with both connections to use both
upstream bandwitch ? is so, how can i do it ? any howto?
> > >
> >
> > man 8 route
> > /mpath<Enter>
>
> And also http://www.openbsd.org/faq/faq6.html#Multipath
>
> Stefan

Reply via email to