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
|
|
|
|
2020-04-25 10:23:27 +00:00
|
|
|
It will also enable and disable the pf firewall as requested in the `state`
|
|
|
|
parameter.
|
|
|
|
|
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
|
2020-04-25 10:23:27 +00:00
|
|
|
Required when state is "present".
|
|
|
|
Defines the ruleset to load onto the $__target_host for `pf(4)`.
|
2012-09-19 18:50:28 +00:00
|
|
|
|
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
|
|
|
|
2020-04-25 10:23:27 +00:00
|
|
|
# Remove the current ruleset in place and disable pf
|
2016-05-20 06:50:56 +00:00
|
|
|
__pf_ruleset --state absent
|
2012-09-19 18:50:28 +00:00
|
|
|
|
2020-04-25 10:23:27 +00:00
|
|
|
# Enable pf with the ruleset defined in $__manifest/files/pf.conf
|
2016-05-20 06:50:56 +00:00
|
|
|
__pf_ruleset --state present --source $__manifest/files/pf.conf
|
2012-09-19 18:50:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2016-06-30 13:12:32 +00:00
|
|
|
:strong:`pf`\ (4)
|
2016-06-17 19:28:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
AUTHORS
|
|
|
|
-------
|
2020-04-25 10:23:27 +00:00
|
|
|
Kamila Součková <coding--@--kamila.is>
|
2016-06-17 19:28:16 +00:00
|
|
|
Jake Guffey <jake.guffey--@--eprotex.com>
|
2012-09-19 18:50:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2020-04-25 10:23:27 +00:00
|
|
|
Copyright \(C) 2016 Kamila Součková.
|
2016-08-12 19:58:44 +00:00
|
|
|
Copyright \(C) 2012 Jake Guffey. You can redistribute it
|
|
|
|
and/or modify it under the terms of the GNU General Public License as
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|