From owner-freebsd-isp Wed Jan 3 19:59: 7 2001 From owner-freebsd-isp@FreeBSD.ORG Wed Jan 3 19:59:04 2001 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from esther.falconsoft.com (esther.falconsoft.com [216.46.87.194]) by hub.freebsd.org (Postfix) with ESMTP id 0B2D637B400 for ; Wed, 3 Jan 2001 19:59:00 -0800 (PST) Received: from WOLFMAN.falconsoft.com (dhcp-05.falconsoft.com [216.46.87.222]) by esther.falconsoft.com (8.11.1/8.11.1) with ESMTP id f043whI01185; Thu, 4 Jan 2001 03:58:43 GMT (envelope-from tim@falconsoft.com) Message-Id: <5.0.0.25.2.20010103224910.00a58a00@esther.falconsoft.com> X-Sender: tim@esther.falconsoft.com X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Wed, 03 Jan 2001 22:55:56 -0500 To: Tom Samplonius From: Tim Gustafson Subject: Re: Question Re: Multiple Default Gateways Cc: freebsd-isp@freebsd.org In-Reply-To: References: <5.0.0.25.2.20010103191232.00a57260@esther.falconsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >That isn't how classic TCP and IP routing works. However, you can use >the ipfw fwd option to specify that traffic from a particular IP gets >pushed to a specifed gateway. Basically, ipfw fwd is way to implement >policy based routing, which is what you probably want. Ok. So here's some more specifics then (just to make sure). My two networks (and their gateways) are: 216.46.87.192/27 -> 216.46.87.193 64.74.56.160/27 -> 64.74.56.161 So to enable this on the machine, I do this: # Allow All Local Traffic To Pass Normally ipfw add allow ip from 216.46.87.192/27 to 216.46.87.192/27 # Forward All Other Traffic To The Router ipfw add fwd 216.46.87.193 ip from 216.46.87.192/27 to any # Allow All Local Traffic To Pass Normally ipfw add allow ip from 64.74.56.160/27 to 64.74.56.160/27 # Forward All Other Traffic To The Router ipfw add fwd 64.74.56.161 ip from 64.74.56.160/27 to any Is that correct? It seems to work, but I'd just like to make sure I'm doing it correctly. Thanks. Tim -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tim Gustafson tim@falconsoft.com www.falconsoft.com (631)475-6662 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Share your knowledge - it's a way to achieve immortality. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message