Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2008 06:38:22 -0700
From:      Chad Perrin <perrin@apotheon.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   pf.conf for variable interfaces
Message-ID:  <20080208133822.GA46647@demeter.hydra>

next in thread | raw e-mail | index | archive | help
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 value change depending on which
interface is active and being used to connect to the outside world.  Do I
just need to create two full sets of rules in my pf.conf (or use a script
to rewrite that file from scratch each time), even though I'll be using
exactly the same rules for PF regardless of which interface I'm using, or
is there some simple way to avoid that sort of redundancy?  What am I
overlooking?

-- 
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?20080208133822.GA46647>