2012-09-19 18:50:28 +00:00
|
|
|
cdist-type__pf_ruleset(7)
|
2012-10-26 16:38:14 +00:00
|
|
|
=========================
|
2016-06-23 14:08:59 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__pf_ruleset - Copy a pf(4) ruleset to $__target_host
|
2012-09-19 18:50:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2016-05-20 06:50:56 +00:00
|
|
|
This type is used on \*BSD systems to manage the pf firewall's ruleset.
|
2012-09-19 18:50:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
state
|
2014-02-08 20:48:51 +00:00
|
|
|
Either "absent" (no ruleset at all) or "present", defaults to "present".
|
2012-09-19 18:50:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
source
|
2012-09-19 18:50:28 +00:00
|
|
|
If supplied, use to define the ruleset to load onto the $__target_host for pf(4).
|
|
|
|
Note that this type is almost useless without a ruleset defined, but it's technically not
|
|
|
|
needed, e.g. for the case of disabling the firewall temporarily.
|
|
|
|
|
2012-11-07 18:22:02 +00:00
|
|
|
|
2012-09-19 18:50:28 +00:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
.. code-block:: sh
|
2012-09-19 18:50:28 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Remove the current ruleset in place
|
|
|
|
__pf_ruleset --state absent
|
2012-09-19 18:50:28 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Enable the firewall with the ruleset defined in $__manifest/files/pf.conf
|
|
|
|
__pf_ruleset --state present --source $__manifest/files/pf.conf
|
2012-09-19 18:50:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2016-06-17 19:28:16 +00:00
|
|
|
pf(4)
|
|
|
|
|
|
|
|
Full documentation at: <:cdist_docs:`index`>,
|
|
|
|
especially cdist type chapter: <:cdist_docs:`cdist-type`>.
|
|
|
|
|
|
|
|
|
|
|
|
AUTHORS
|
|
|
|
-------
|
|
|
|
Jake Guffey <jake.guffey--@--eprotex.com>
|
2012-09-19 18:50:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2012 Jake Guffey. Free use of this software is
|
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|