From owner-freebsd-net@FreeBSD.ORG Sat Oct 29 12:27:21 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 D18E8106564A for ; Sat, 29 Oct 2011 12:27:21 +0000 (UTC) (envelope-from nyoman.bogi@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9137D8FC12 for ; Sat, 29 Oct 2011 12:27:21 +0000 (UTC) Received: by gyg4 with SMTP id 4so521958gyg.13 for ; Sat, 29 Oct 2011 05:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=b9lSD+RudV/KrSrEUGKP1NpKUqgrsrha826dxMBX7JQ=; b=WgiF6Xbfhz7FgnA1OEGLbxwsFswtu6R9bt8D+t6PDaGrNhmQZVmjr6z0RlIXNj1Zo2 6n0pFdBAGJSCoPwqxHk4y1APLI+46ULYHtpoPEmw5Vm59UtUU9IMWHOB52PmoSWeR7bI t7bgAb0ZfWH3BoIS4Ueq4FP318UZ/vmXuhaFM= MIME-Version: 1.0 Received: by 10.236.181.131 with SMTP id l3mr8308998yhm.105.1319891240936; Sat, 29 Oct 2011 05:27:20 -0700 (PDT) Received: by 10.236.157.73 with HTTP; Sat, 29 Oct 2011 05:27:20 -0700 (PDT) In-Reply-To: <4EAB3E0C.3020203@freebsd.org> References: <4EAB3E0C.3020203@freebsd.org> Date: Sat, 29 Oct 2011 19:27:20 +0700 Message-ID: From: "nyoman.bogi@gmail.com" To: Julian Elischer Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 29 Oct 2011 12:27:21 -0000 thanks Julian, buat 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? 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