Date: Mon, 31 Mar 2008 13:51:34 -0500 From: "Rance Hall" <ranceh@gmail.com> To: freebsd-pf@freebsd.org Subject: need help figuring out if pf is right for me. Message-ID: <845c0f80803311151y7fcd3e77r836a5026d76b5179@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Ive been tasked with writing a firewall script for a client, and I'm looking at pf for the firewall. so far the only requirement I cant seem to find an example of how to do is to actually script the pf rules from a shell script. The project entails two pieces. A firewall script, and a config file which is parsed by the firewall script for values for variables. example: #!/bin/sh CONFIG_FILE=/path/to/config if [ -e $CONFIG_FILE ] ; then . $CONFIG_FILE else (fail miserably) fi pf macro based rules go here END Idea being that the same script can be used multiple places by just changing the config file, also that there is some job duty split between the setup of the firewall and the execution of the firewall. Can I do this with pf in a way that makes at least some sense? Thanks for your help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?845c0f80803311151y7fcd3e77r836a5026d76b5179>