From owner-freebsd-questions@FreeBSD.ORG Fri Feb 8 13:53:42 2008 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 BEE7C16A420 for ; Fri, 8 Feb 2008 13:53:42 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from bifrost.locolomo.org (97.pool85-48-194.static.orange.es [85.48.194.97]) by mx1.freebsd.org (Postfix) with ESMTP id 774EE13C46E for ; Fri, 8 Feb 2008 13:53:42 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from Home.local (32.Red-80-37-158.staticIP.rima-tde.net [80.37.158.32]) by bifrost.locolomo.org (Postfix) with ESMTP id 1815C39822 for ; Fri, 8 Feb 2008 14:53:41 +0100 (CET) Message-ID: <47AC5EE3.1010003@locolomo.org> Date: Fri, 08 Feb 2008 14:53:39 +0100 From: Erik Norgaard User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: FreeBSD Questions References: <20080208133822.GA46647@demeter.hydra> In-Reply-To: <20080208133822.GA46647@demeter.hydra> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: pf.conf for variable interfaces 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: Fri, 08 Feb 2008 13:53:42 -0000 Chad Perrin wrote: > I'm setting up PF on a FreeBSD laptop that sometimes uses the wireless > device (iwi0) as its external interface, and sometimes uses the RJ-45 > ethernet device (bge0) as its external interface. Unfortunately, I > haven't figured out yet how to make that happen. How about this: ext_ifs = "{" iwi0 bge0 "}" block in quick on ext_ifs all pass out quick on ext_ifs all keep state ... As long as you don't need statements like iwi0:network which you shouldn't on an endpoint, then I guess this will work. Erik