Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 May 2004 09:58:37 -0400
From:      Don Bowman <don@sandvine.com>
To:        'Eric Anderson' <anderson@centtech.com>, Emre Bastuz <info@emre.de>
Cc:        freebsd-isp@freebsd.org
Subject:   RE: 2 adsl connections load balancing with natd/ipfw
Message-ID:  <FE045D4D9F7AED4CBFF1B3B813C85337051D8D61@mail.sandvine.com>

next in thread | raw e-mail | index | archive | help
From: Eric Anderson [mailto:anderson@centtech.com]
> Emre Bastuz wrote:
> [..snip..]
> 
> >So far I did not find any tutorial or howto or whatever to 
> achieve my goal with
> >FreeBSD. I assume right now there is no satisfying way to 
> use your two lines
> >with BSD except with dedicated hardware.
> >  
> >
> 
> Isn't it possible to use ipnat on a FreeBSD box, and use the load 
> distribution/reverse nat stuff in it to spread the requests 
> out between 
> the two connections?  It's not perfect, but it's something. 
> 
> Basically, I think you'd set up a FreeBSD box as 'the router', so 
> clients would point to it's interface for their gateway (or 
> however you 
> want to set it up), then the FreeBSD box would distribute requests 
> between the two 'real' router IP's.  I'm not certain this 
> will work, but 
> just a thought..
> 

Run two natd. Use ipfw 'probability' to pick one, and make the
rule keep state so that the session sticks to the natd it has
chosen. The only problem i have found is that each tcp session
may then pick a different natd, couldn't figure out how to
stick it to the source ip. It does work tho. No bgp, isp intervention,
etc, reqired. The freebsd box running the natd will only use
one of the two connections for its default route, but the hosts
behind it using it as a gateway will use both.

--don



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE045D4D9F7AED4CBFF1B3B813C85337051D8D61>