From owner-freebsd-questions Tue Jan 13 16:54:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA01140 for questions-outgoing; Tue, 13 Jan 1998 16:22:34 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA06836 for ; Tue, 13 Jan 1998 15:32:56 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id WAA22554; Mon, 12 Jan 1998 22:05:00 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Mon, 12 Jan 1998 22:05:00 -0800 (PST) From: Doug White Reply-To: Doug White To: Dave Cornejo cc: freebsd-questions@freebsd.org Subject: Re: routing to multiple internet connections In-Reply-To: <199801091750.JAA17832@epatl.genmagic.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org Precedence: bulk On Fri, 9 Jan 1998, Dave Cornejo wrote: > I have two connections to the Internet - one frame relay and one cable > modem connected to two separate ethernet segments. I have one FreeBSD > box sitting on both segments. My main network is the ethernet > connected to the frame relay, and I need most things to happen through > that network. For http & ftp however, I want to put a > proxy/cache/whatever on the FreeBSD system and have it route it's > traffic specifically to the cable modem segment. > > It's easy enough to get the packets to the interface, but the problem > is that essentially I have two 'default' gateways, one for each > interface. Getting real routing info from the routers is problematic, > as both claim to offer default routing and I only have access to the > one on the frame relay network. > > So, am I screwed and just need to pick one net or the other as my > default? Or does anybody have any suggestions? You need to pick one. Routing can't route based on port addresses, as far as I know. You can hold one of them as a backup, however, so if your primary link goes down you can (manually) reroute to the other link. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major