From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 21:20:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A335216A4CE for ; Sat, 17 Jan 2004 21:20:34 -0800 (PST) Received: from ns2.alphaque.com (ns2.alphaque.com [202.75.47.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 5706043D48 for ; Sat, 17 Jan 2004 21:20:21 -0800 (PST) (envelope-from dinesh@alphaque.com) Received: (qmail 36496 invoked by uid 0); 18 Jan 2004 05:20:18 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.75.47.153) by lucifer.net-gw.com with SMTP; 18 Jan 2004 05:20:18 -0000 Received: from localhost (localhost.alphaque.com [127.0.0.1]) by prophet.alphaque.com (8.12.10/8.12.9) with ESMTP id i0I5FVlv002835; Sun, 18 Jan 2004 13:15:31 +0800 (MYT) (envelope-from dinesh@alphaque.com) Date: Sun, 18 Jan 2004 13:15:31 +0800 (MYT) From: Dinesh Nair To: Antoine Jacoutot In-Reply-To: <200401141827.30569.ajacoutot@lphp.org> Message-ID: <20040118131333.I98208-100000@prophet.alphaque.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: FreeBSD-Questions Subject: Re: Loading balancing with more than one ISP. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2004 05:20:34 -0000 On Wed, 14 Jan 2004, Antoine Jacoutot wrote: > What I'm hoping to do is find a way to route all paquets coming: > - from DMZ to internet, using NET connexion1 > - from LAN to internet, using NET connection2 > > To be more understandable, something like this: > route add from DMZ defaut em0 > route add from LAN defaut em1 you can do this with IPFW's fwd rulesets. ipfw add fwd netconnexion1_gw ip from DMZ/netmask to any ipfw add fwd netconnexion2_gw ip from LAN/netmask to any this sets the next hop address for a packet, based on it's incoming address space. Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.alphaque.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+