From owner-freebsd-net Sat Mar 13 23:43:50 1999 Delivered-To: freebsd-net@freebsd.org Received: from tch.org (tacostand.tch.org [199.74.220.9]) by hub.freebsd.org (Postfix) with ESMTP id E326014F33 for ; Sat, 13 Mar 1999 23:43:48 -0800 (PST) (envelope-from ser@tch.org) Received: (from ser@localhost) by tch.org (8.9.1/8.9.1) id XAA00764; Sat, 13 Mar 1999 23:43:29 -0800 (PST) (envelope-from ser) Date: Sat, 13 Mar 1999 23:43:29 -0800 From: Steve Rubin To: Jesse Cc: freebsd-net@freebsd.org Subject: Re: routing based on source address Message-ID: <19990313234328.A758@tch.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Jesse on Fri, Feb 26, 1999 at 01:53:50AM -0800 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Paul Vixie has a hack for this for NetBSD I beleive, you might want to dig around on his ftp server (ftp.vix.com) for it. On Fri, Feb 26, 1999 at 01:53:50AM -0800, Jesse wrote: > > Hi, > > 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). > > Hope someone has some ideas. Thanks in advance. > > --- > Jesse > http://www.lumiere.net/ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- Steve Rubin ser@tch.org TCH Network Services http://www.tch.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message