From owner-freebsd-isp@FreeBSD.ORG Sun Aug 21 03:05:23 2005 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B46D16A41F for ; Sun, 21 Aug 2005 03:05:23 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D59B43D45 for ; Sun, 21 Aug 2005 03:05:23 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.23] (andersonbox3.centtech.com [192.168.42.23]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j7L35LTT001383; Sat, 20 Aug 2005 22:05:21 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <4307EF82.7080003@centtech.com> Date: Sat, 20 Aug 2005 22:05:38 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050815 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ovidiu Ene References: <430656A8.5030103@unixware.ro> In-Reply-To: <430656A8.5030103@unixware.ro> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/1034/Thu Aug 18 15:07:58 2005 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-isp@freebsd.org Subject: Re: Load Balancing - Nice and Easy - no BGP, no isp help. X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2005 03:05:23 -0000 Ovidiu Ene wrote: > Hello friends > > I am trying for a while to make a load balancer under FreeBSD. No BGP > support from isps! > > I would have: 3 nics, ISP1 nic, ISP2 nic and LAN nic. > What i've done until now, after reading lots of posts, googling for a > while: > > - I've suceeded to setup an outgoing load balancer with pf, it works > perfectly but only for outgoing traffic; > - I've noticed that almost everybody thing that it cannot be done load > balancing with BSD of incoming and outgoing without help of that both > ISP (BGP) > - I find hardware with proprietary OS/firmware that can do load > balancing without support of ISP. Some are cheap (300$), but at review > does not know to load balance incoming traffic (break functionality of > some pages accessed, since some of load is on one interface, some of > other, works corectly only if i setup to come some type of traffic on > one interface, some of other (for example trafic via port 80 on one nic, > ftp traffic on the other), also are expensive hardware load balancers > (over 1000$) that... i am asking myself how it works, without help of isp. > - I've found somewhere that it can be done load balancing but not with > one box with that 3 nics, but with 3 boxex, because (that article i am > "insipring" said that every box has just one routing table) because can > be created a virtual server that with handle routes from that 2 boxes. > - People told me that in Linux load balancing cand be done, 3 nics, 2 > external, one to Lan, with iptables. Here is a short article: > http://linux.com.lb/wiki/index.pl?node=Load%20Balancing%20Across%20Multiple%20Links > > > So, my question is, if some people made it (in expensive hardware that > did have the same OS, maybe even FreeBSD, and proprietary algorythms) > and in Linux it can be done (people told me, i've read articles and also > so it here, where i live) why it cannot be done under FreeBSD? > I guess it can be done, I want to do it with FreeBSD, and want to obtain > same performances as with Linux. > > What is your opinion about that? What should I do? Anybody suceed in > making load balancing work that way? I'm wondering if there is a way to do something like this with ipnat. If not, it might be a good place to toss something like this - just send new connection requests through alternating interfaces.. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------