From owner-freebsd-questions Fri Feb 26 11:47:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from bubba.whistle.com (s205m7.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id C582F14FF5; Fri, 26 Feb 1999 11:47:18 -0800 (PST) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.2/8.9.2) id LAA85035; Fri, 26 Feb 1999 11:46:28 -0800 (PST) From: Archie Cobbs Message-Id: <199902261946.LAA85035@bubba.whistle.com> Subject: Re: routing based on source address In-Reply-To: from Jesse at "Feb 26, 99 01:53:50 am" To: j@lumiere.net (Jesse) Date: Fri, 26 Feb 1999 11:46:28 -0800 (PST) Cc: freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jesse writes: > I have a box hooked up to a network with access to two seperate lines > going to two seperate networks (206.x.x.x for link #1 and 207.x.x.x for > link #2). The machine has IP addresses on both IP ranges. The default > gateway is 207.x.x.1. > > I'm running a server which is bound to a 206.x.x.x IP. However, since my > default gateway is 207.x.x.1, it sends all data out on link #2 but > receives incoming data over link #1. This means that if either link #1 or > link #2 is down, I'm effectively dead in the water. > > Is there any way to tell my box that for all data going out of it with a > /source/ address of 206.x.x.x should be sent through the 206.x.x.1 > gateway? I know I can do this based on destination, but I have no clue how > to do it based on source (and unfortunately I can't predict the addresses > of all the clients I'll be communicating with). I don't know of any way to do this without hacking the kernel code.. :-( -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message