Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 1999 12:18:33 -0800 (PST)
From:      Julian Elischer <julian@whistle.com>
To:        Archie Cobbs <archie@whistle.com>
Cc:        Jesse <j@lumiere.net>, freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG
Subject:   Re: routing based on source address
Message-ID:  <Pine.BSF.3.95.990226121737.12223N-100000@current1.whistle.com>
In-Reply-To: <199902261946.LAA85035@bubba.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
you can use the IPFW  FWD operation.
make ipfw match on the appropriate source address,
and then fwd to the desired next hop.

julian

On Fri, 26 Feb 1999, Archie Cobbs wrote:

> 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-net" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.990226121737.12223N-100000>