From owner-freebsd-questions@FreeBSD.ORG Tue Jun 21 13:35:00 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 C28E3106566B for ; Tue, 21 Jun 2011 13:35:00 +0000 (UTC) (envelope-from lars@oddbit.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8F3688FC0A for ; Tue, 21 Jun 2011 13:35:00 +0000 (UTC) Received: by iyb11 with SMTP id 11so2467793iyb.13 for ; Tue, 21 Jun 2011 06:35:00 -0700 (PDT) Received: by 10.231.60.132 with SMTP id p4mr6053225ibh.121.1308663299874; Tue, 21 Jun 2011 06:34:59 -0700 (PDT) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx.google.com with ESMTPS id 4sm3808293ibc.42.2011.06.21.06.34.58 (version=SSLv3 cipher=OTHER); Tue, 21 Jun 2011 06:34:59 -0700 (PDT) Received: by iyb11 with SMTP id 11so2467772iyb.13 for ; Tue, 21 Jun 2011 06:34:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.10.138 with SMTP id p10mr6514719ibp.84.1308663298365; Tue, 21 Jun 2011 06:34:58 -0700 (PDT) Received: by 10.231.39.137 with HTTP; Tue, 21 Jun 2011 06:34:58 -0700 (PDT) In-Reply-To: <201106211128.p5LBSvCe095130@x.it.okstate.edu> References: <201106211128.p5LBSvCe095130@x.it.okstate.edu> Date: Tue, 21 Jun 2011 09:34:58 -0400 Message-ID: From: Lars Kellogg-Stedman To: Martin McCormick Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Tue, 21 Jun 2011 13:35:00 -0000 > =C2=A0 =C2=A0 =C2=A0 =C2=A0When I set up the secondary interface, I have = not been > able to come up with a statement or statements that tell fxp1 > that it's default router is y.y.y.y so you can't ever reach it > from outside the new subnet. What you want to do is called "policy routing" or "source routing", since you want to select a route based on your local address. While I've done this frequently under Linux, I've never had to set this up on a FreeBSD system. It looks like you would do this through the "pf" subsystem...unfortunately, openbsd.org appears to be down right now, and that appears to be the repository for the pf documentation. Look at the "ROUTING" section of the pf.conf(5) man page.