From owner-freebsd-questions Sat Oct 2 1:25:32 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [212.110.138.1]) by hub.freebsd.org (Postfix) with ESMTP id E110D14E69 for ; Sat, 2 Oct 1999 01:25:16 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id LAA23462; Sat, 2 Oct 1999 11:24:35 +0300 (EEST) (envelope-from ru) Date: Sat, 2 Oct 1999 11:24:35 +0300 From: Ruslan Ermilov To: "Sean J. Schluntz" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Routing Question. Message-ID: <19991002112435.C14447@relay.ucb.crimea.ua> Mail-Followup-To: "Sean J. Schluntz" , freebsd-questions@FreeBSD.ORG References: <199910011912.MAA07301@c956029-a.haywd2.sfba.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <199910011912.MAA07301@c956029-a.haywd2.sfba.home.com>; from schluntz@timberwolf.workofstone.net on Fri, Oct 01, 1999 at 11:41:43AM -0700 X-Operating-System: FreeBSD 3.2-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Oct 01, 1999 at 11:41:43AM -0700, schluntz@timberwolf.workofstone.net wrote: > > Is it possible to setup a system so that the routing takes place on source > not destination? > > What I am trying to do is have my NAT'd subnets traffic have a different default > gateway than everything else that goes though the firewall. (So my personal traffic will use the cablemodem insted of the DSL line keeping all of the bandwitch of the DSL line open for business traffic.) > > Is this possible? The system is a FreeBSD/i386 3.3 system with 4 network > cards, 1) DSL, 2) CableModem, 3) DMZ, 4) NAT. > Yup, ipfw(8)'s `fwd ipaddr' will change the next-hop gateway for matching packets without altering the packets itself. Refer to the ipfw(8) manual page for details. Cheers, -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message