From owner-freebsd-questions@FreeBSD.ORG Wed Mar 14 18:40:26 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BED5716A400 for ; Wed, 14 Mar 2007 18:40:26 +0000 (UTC) (envelope-from mark@messier.com) Received: from mainstreet.net (noc.mainstreet.net [207.5.0.45]) by mx1.freebsd.org (Postfix) with ESMTP id A660B13C45E for ; Wed, 14 Mar 2007 18:40:26 +0000 (UTC) (envelope-from mark@messier.com) Received: from [199.245.73.254] (cache.mainstreet.net [199.245.73.254]) (authenticated bits=0) by mainstreet.net (8.13.8/8.13.8) with ESMTP id l2EIeQPP055521 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 14 Mar 2007 11:40:26 -0700 (PDT) (envelope-from mark@messier.com) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <64CD631E-C04C-498E-A71D-208287D5511D@messier.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: FreeBSD Mailing List From: Mark Messier Date: Wed, 14 Mar 2007 11:40:18 -0700 X-Mailer: Apple Mail (2.752.2) Subject: per-interface default routes? 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: Wed, 14 Mar 2007 18:40:26 -0000 Suppose you have a freebsd box with two LAN interfaces, one numbered on netA and one on netB... Some applications are listening on the netA IP address, some on the netB IP address. Some applications may be listening on all interfaces but might have a directive that indicates which IP address to use for packets sourced from the application, like this: query-source address 192.0.2.2 port 53; What I want to happen is that packets sourced from the netA IP address go out the netA physical interface and packets sourced from the netB IP address go out the netB physical interface. That is, I want per-interface default routes (is this the correct term?). How do I do this? Thanks, -mark