From owner-freebsd-questions@FreeBSD.ORG Tue Dec 22 11:48:57 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67B531065697 for ; Tue, 22 Dec 2009 11:48:57 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: from lerwick.hopto.org (81-178-20-70.dsl.pipex.com [81.178.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id A14E18FC1C for ; Tue, 22 Dec 2009 11:48:55 +0000 (UTC) Received: (qmail 64617 invoked by uid 98); 22 Dec 2009 12:00:04 +0000 Received: from 192.168.0.100 by polaris.lerwick.hopto.org (envelope-from , uid 82) with qmail-scanner-2.01 (clamdscan: 0.95.1/9971. hbedv: 7.9.1.53/7.1.6.174. spamassassin: 3.2.5. Clear:RC:1(192.168.0.100):. Processed in 4.355195 secs); 22 Dec 2009 12:00:04 -0000 Received: from unknown (HELO x60.lerwick.hopto.org) (192.168.0.100) by lerwick.hopto.org with SMTP; 22 Dec 2009 11:59:59 +0000 Message-ID: <4B30B22A.1010704@lerwick.hopto.org> Date: Tue, 22 Dec 2009 11:48:58 +0000 From: Craig Butler User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.5) Gecko/20091221 Lightning/1.0b1pre Thunderbird/3.0 MIME-Version: 1.0 To: Mel Flynn References: <200912201903.34873.mel.flynn+fbsd.questions@mailing.thruhere.net> <4B2FC4CB.2040409@gmx.com> <200912211546.05151.mel.flynn+fbsd.questions@mailing.thruhere.net> In-Reply-To: <200912211546.05151.mel.flynn+fbsd.questions@mailing.thruhere.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Nikos Vassiliadis Subject: Re: Loadbalance outgoing traffic over two cable modems in same network X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 11:48:57 -0000 On 22/12/2009 00:46, Mel Flynn wrote: > On Monday 21 December 2009 09:56:11 Nikos Vassiliadis wrote: > >> On 12/21/2009 6:03 AM, Mel Flynn wrote: >> >>> Hi, >>> >>> I've looked over http://www.openbsd.org/faq/pf/pools.html but this >>> assumes two different gateways for the two interfaces. >>> I'm faced with two cable modems from the same ISP, with the same gateway. >>> I can't lagg(4) the interfaces, since specific IP's are bound to specific >>> modems. >>> >> This can probably be fixed from the ISP side. It should probably be some >> antispoofing rule that drops the packets you are sending via the "wrong" >> interface. You could try communicating the problem to the ISP and hope for >> the best... >> > I'd rather not go that route. However, I might ask the ISP to move swap two > IP's, so that I have two consecutive IPs on two modems and can use /31 > notation for the pool. Source hash should then work better. > > >>> So I'm wondering if using stick-address with a round-robin nat pool is >>> really sufficient to do load balancing of outgoing traffic and not get >>> into session problems with various protocols. Has anybody had similar >>> experiences? >>> >> I have no experience on this, but theoretically a state can expire while >> the upper layers are still active... so, I *think* you may have >> problems... Of course, you could increase the lifetime of states >> > True, I'm mostly worried about DNS queries and other UDP protocols. TCP should > theoretically be fine. > Thanks for your feedback. > Would ECMP (aka RADIX_MPATH) not be suitable for your requirements ?? 2 default routes, one to each of the modems IP's ... that should start bunting traffic down both pipes. Works for me here... ================================================= Equal cost multipath routing Status: Committed to 8-CURRENT Will appear in 8.0: sure Authors: Qing Li Web: commit message ECMP routing allows for multiple routes to be handled by the kernel, including default routes. It potentially offers substantial increases in bandwidth by load-balancing traffic over multiple paths. ================================================= http://en.wikipedia.org/wiki/Equal-cost_multi-path_routing http://lists.freebsd.org/pipermail/cvs-src/2008-April/089956.html /Craig B