Re: pf.conf for variable interfaces

2008-02-09 Thread Chad Perrin
On Sat, Feb 09, 2008 at 11:38:22AM +0100, Erik Norgaard wrote: > Chad Perrin wrote: > >>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 wh

Re: pf.conf for variable interfaces

2008-02-09 Thread Erik Norgaard
Chad Perrin wrote: 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 answ

Re: pf.conf for variable interfaces

2008-02-08 Thread Chad Perrin
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,

Re: pf.conf for variable interfaces

2008-02-08 Thread Erik Norgaard
Jim Bow wrote: Erik Norgaard wrote: How about this: ext_ifs = "{" iwi0 bge0 "}" block in quick on ext_ifs all pass out quick on ext_ifs all keep state ... This is nice, but any ideas how to do this if the wireless interface is only present some of the time, ie its a pcmcia card? If the abo

Re: pf.conf for variable interfaces

2008-02-08 Thread Jim Bow
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

Re: pf.conf for variable interfaces

2008-02-08 Thread Derek Buttineau
On 2008-Feb-08, at 8:38 AM, 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 tha

Re: pf.conf for variable interfaces

2008-02-08 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 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 fig

Re: pf.conf for variable interfaces

2008-02-08 Thread Erik Norgaard
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: e

pf.conf for variable interfaces

2008-02-08 Thread Chad Perrin
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. I'd like to be able to have the $ext_if