Date: Fri, 8 Feb 2008 15:11:54 -0700 From: Chad Perrin <perrin@apotheon.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: pf.conf for variable interfaces Message-ID: <20080208221154.GB47822@demeter.hydra> In-Reply-To: <47AC5EE3.1010003@locolomo.org> References: <20080208133822.GA46647@demeter.hydra> <47AC5EE3.1010003@locolomo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 08, 2008 at 02:53:39PM +0100, Erik Norgaard wrote:
> 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.
Thanks.  That looks like the answer I wanted.  I don't know why I can't
find any documentation that offers an example of this.  Maybe I'm losing
my Google mojo.
-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Baltasar Gracian: "A wise man gets more from his enemies than a fool from
his friends."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080208221154.GB47822>
