Aug 10, 2011
tom

using “include” like statement in pf.conf to include some parts from other files

Question

I want to be able to include some parts of my pf.conf from other set of files.

For example I will include “set timeout” vs like statements in another file.

Using anchors and “load anchor from file” statements will not help because anchor can not hold such GLOBAL OPTIONS.

Answer

One way to do this is to use m4 as a preprocessor that produces your final pf.conf. Or you can even break your pf.conf into parts and then have a simplistic “preprocessor” cat those parts > /etc/pf.conf.

Related posts:

  1. How to include my own Apache.conf with main configuration file
  2. Seperate conf files for each virtual host
  3. Setup Apache to run the same site, some parts with Django and some parts with RoR
  4. Does a full ntbackup include mssql mdf files?
  5. Specifying default vhost on Apache2 with multiple vhost files

Leave a comment