From owner-freebsd-net@FreeBSD.ORG Sun Oct 30 05:33:48 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2A47106566C for ; Sun, 30 Oct 2011 05:33:48 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id ABE378FC08 for ; Sun, 30 Oct 2011 05:33:48 +0000 (UTC) Received: from julian-mac.elischer.org (home-nat.elischer.org [67.100.89.137]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id p9U5XdQb083230 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 29 Oct 2011 22:33:47 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <4EACE1AF.7070002@freebsd.org> Date: Sat, 29 Oct 2011 22:33:35 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15 MIME-Version: 1.0 To: "nyoman.bogi@gmail.com" References: <4EAB3E0C.3020203@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: multiple ISP X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2011 05:33:48 -0000 On 10/29/11 5:27 AM, nyoman.bogi@gmail.com wrote: > thanks Julian, > but I think fwd in ipfw will use round robin mechanism > instead of load balancing, which I prefer. > or perhaps my knowledge about fwd is a little bit old > maybe fwd can do the load balancing? the problem is not load balancing the outgoing traffic, but the incoming traffic. > > > > On Sat, Oct 29, 2011 at 6:43 AM, Julian Elischer > wrote: > > On 10/28/11 7:22 AM, nyoman.bogi@gmail.com > wrote: > > dear all, > > I need to set up a router (using FreeBSD) > that connect to the Internet > to accomodate multiple ISP, > so users can be load balanced through > those several ISP lines. > > how can I do that? > > > Is it ok for you to NAT the connecitons? You pretty much have to > unless > you can convince your ISPs > to call you a peer (unlikely). > > Basically NAT both outgoing interfaces (see descriptions elsewhere > on how to run natd on two interfaces), and then use the setfib > rule in ipfw to select which routing table to use for each session > and then set up the tables to use different outgoing interfaces. > > you could also use the 'fwd' ipfw rule instead of the setfib rule. > > > thanks in advance > > ------------------------------- > Bogi Aditya > Sisfo - IMTelkom > http://bogi.blog.imtelkom.ac.id > _______________________________________________ > freebsd-net@freebsd.org > mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to > "freebsd-net-unsubscribe@freebsd.org > " > > > > > > -- > ------------------------------- > Bogi Aditya > Sisfo - IMTelkom > http://bogi.blog.imtelkom.ac.id >