From owner-freebsd-questions@FreeBSD.ORG Mon Jun 20 23:46:41 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6C4E106564A for ; Mon, 20 Jun 2011 23:46:41 +0000 (UTC) (envelope-from efinley.lists@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9E97B8FC0A for ; Mon, 20 Jun 2011 23:46:41 +0000 (UTC) Received: by vxg33 with SMTP id 33so1447189vxg.13 for ; Mon, 20 Jun 2011 16:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=GVPQyk/Annru+pb4bfGQMJ3w+zKJVuYBV2LWmQ88xZk=; b=Hn17bWvJMgPlqbrlHeENJhK1GZYTfGj7dT+bsrPHep/u2Cpto5SIHMZ4bngaQW6LXn TAUoAB76r5sVk0iLPMk7n+S6gbtqatFu4UOgOukMnaJxQnmuYiPL3pcJXRsMXCrTRqoK cHG6GiPAhsWPSMLGKRmkQ15YnFDNBjAUrYu/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FatLdWeob1dg4f4U4KdwhTFSYshwaD3dk+xRA6Yp4vYGwcG6990NL3Tyz7gmGV/rF/ ZK/et+a0vDkkKja7hYdk+rMNEUw5PtYH5J6UNHkbUqe96OfJBW4ZWEgtd0TU+TpqVmtw H7DYpSgj2cFj15vwL941x8Wnep7l3Bx0gA+wU= MIME-Version: 1.0 Received: by 10.52.73.164 with SMTP id m4mr4246096vdv.157.1308611919224; Mon, 20 Jun 2011 16:18:39 -0700 (PDT) Received: by 10.52.111.136 with HTTP; Mon, 20 Jun 2011 16:18:39 -0700 (PDT) In-Reply-To: <4DFFD0A7.8010806@radel.com> References: <201106202107.p5KL7PW0091851@x.it.okstate.edu> <4DFFC61B.2080201@radel.com> <27899_1308609017_4DFFC9F9_27899_767_1_D9B37353831173459FDAA836D3B43499BF89C588@WADPMBXV0.waddell.com> <4DFFD0A7.8010806@radel.com> Date: Mon, 20 Jun 2011 17:18:39 -0600 Message-ID: From: Elliot Finley To: Jon Radel Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: Two Networks on one System X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2011 23:46:42 -0000 On Mon, Jun 20, 2011 at 4:58 PM, Jon Radel wrote: > > On 6/20/11 6:30 PM, Gary Gatten wrote: > >> I was kinda going this route as well - policy based routing type thing, >> but, is there an "easier" way? > > Not that I know of given a constraint of completely disjoint networks. > However, I won't be too terribly surprised if somebody comes up with > something elegant that makes us all go, "Ooooooo, what a disgustingly neat > hack." If it's two completely disjoint networks, the two networks don't use overlapping IP space and the IP space on at least one of the networks is known, then just use standard routing. put in static routes for the known space and a default route on the other interface for the unknown space. If the two networks are using overlapping space, then the only way to differentiate the packets are which interface they came in... then you'll have to use a PF hack. Elliot