From owner-freebsd-questions@FreeBSD.ORG Thu Aug 30 15:01:08 2007 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 7271E16A417 for ; Thu, 30 Aug 2007 15:01:08 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from pizzabox.cyberleo.net (alpha.cyberleo.net [198.145.45.10]) by mx1.freebsd.org (Postfix) with ESMTP id D738C13C4CA for ; Thu, 30 Aug 2007 15:01:07 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: (qmail 30615 invoked from network); 30 Aug 2007 15:01:07 -0000 Received: from adsl-75-3-87-131.dsl.chcgil.sbcglobal.net (HELO ?172.16.44.14?) (cyberleo@cyberleo.net@75.3.87.131) by alpha.cyberleo.net with ESMTPA; 30 Aug 2007 15:01:07 -0000 Message-ID: <46D48920.6060002@cyberleo.net> Date: Tue, 28 Aug 2007 15:44:16 -0500 From: CyberLeo Kitsana User-Agent: Thunderbird 2.0.0.6 (X11/20070819) MIME-Version: 1.0 To: Eric Crist References: <6CC1B795-8345-48F3-8FF1-7FCC5561A9B1@gmail.com> In-Reply-To: <6CC1B795-8345-48F3-8FF1-7FCC5561A9B1@gmail.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: User Questions Subject: Re: quick pf source-based routing question 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: Thu, 30 Aug 2007 15:01:08 -0000 Eric Crist wrote: > Hey, > > We have a problem here at the office that I'd like to solve with pf and > source-based routing. > > How would I write a rule with pf to route any traffic from 10.1.1.1 > across a specific interface? Perhaps some permutation of the following? pass in on $int_if route-to { ($ext1_if $ext1_gw) } round-robin from $int_net to $ext1_net keep state Where *_if is the interface name, *_gw is the gateway address, and *_net is the subnet/mask of that interface. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/